1.1 --- a/samples/delegatingwriterfinal/src-api1.0/api/Writer.java Sat Jun 14 09:58:08 2008 +0200
1.2 +++ b/samples/delegatingwriterfinal/src-api1.0/api/Writer.java Sat Jun 14 09:58:11 2008 +0200
1.3 @@ -22,13 +22,15 @@
1.4 public final void write(char cbuf[]) throws IOException {
1.5 impl.write(cbuf, 0, cbuf.length);
1.6 }
1.7 - public final void write(char cbuf[], int off, int len) throws IOException {
1.8 + public final void write(char cbuf[], int off, int len)
1.9 + throws IOException {
1.10 impl.write(cbuf, off, len);
1.11 }
1.12 public final void write(String str) throws IOException {
1.13 impl.write(str, 0, str.length());
1.14 }
1.15 - public final void write(String str, int off, int len) throws IOException {
1.16 + public final void write(String str, int off, int len)
1.17 + throws IOException {
1.18 impl.write(str, off, len);
1.19 }
1.20 public final void flush() throws IOException {
1.21 @@ -44,11 +46,13 @@
1.22
1.23 public static Writer create(final java.io.Writer w) {
1.24 return new Writer(new Impl() {
1.25 - public void write(String str, int off, int len) throws IOException {
1.26 + public void write(String str, int off, int len)
1.27 + throws IOException {
1.28 w.write(str, off, len);
1.29 }
1.30
1.31 - public void write(char[] arr, int off, int len) throws IOException {
1.32 + public void write(char[] arr, int off, int len)
1.33 + throws IOException {
1.34 w.write(arr, off, len);
1.35 }
1.36
1.37 @@ -70,8 +74,8 @@
1.38 public static interface Impl {
1.39 public void close() throws IOException;
1.40 public void flush() throws IOException;
1.41 - public void write(String str, int off, int len) throws IOException;
1.42 - public void write(char[] arr, int off, int len) throws IOException;
1.43 + public void write(String s, int off, int len) throws IOException;
1.44 + public void write(char[] a, int off, int len) throws IOException;
1.45 }
1.46 }
1.47 // END: writer.final.1.0