diff -r 0678c9589013 -r 40cabcdcd2be samples/trycatchredo/src/org/apidesign/exceptions/trycatchredo/usage/QueryStream.java --- a/samples/trycatchredo/src/org/apidesign/exceptions/trycatchredo/usage/QueryStream.java Sun Feb 01 16:29:46 2009 +0100 +++ b/samples/trycatchredo/src/org/apidesign/exceptions/trycatchredo/usage/QueryStream.java Thu Oct 30 21:30:10 2014 +0100 @@ -6,13 +6,15 @@ import java.io.OutputStream; import javax.swing.JOptionPane; +// BEGIN: trycatchredo.stream public final class QueryStream extends OutputStream { private ByteArrayOutputStream arr = new ByteArrayOutputStream(); /** this field can be manipulated by the QueryException */ Boolean reverse; @Override - public synchronized void write(byte[] b, int off, int len) throws IOException { + public synchronized void write(byte[] b, int off, int len) + throws IOException { if (reverse == null) { throw new QueryException(); } @@ -63,3 +65,4 @@ } } } +// END: trycatchredo.stream