This time with the correct URL
Fix looks good for me. But there is one thing - as I understand this code will produce overflowed output in some cases - when the last write(...) invocation will overflow output.
String s = output.toString(); output = new StringBuffer(s.substring(0, overflowStart)); output.append(OVERFLOW_MESSAGE); output.append(s.substring(overflowEnd));
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.