samples/delegatingwriterfinal/src-api1.0/api/Writer.java
changeset 153 b5cbb797ec0a
parent 133 50bf1b976c0d
child 154 0fd5e9c500b9
     1.1 --- a/samples/delegatingwriterfinal/src-api1.0/api/Writer.java	Sat Jun 14 09:56:16 2008 +0200
     1.2 +++ b/samples/delegatingwriterfinal/src-api1.0/api/Writer.java	Sat Jun 14 09:58:08 2008 +0200
     1.3 @@ -22,15 +22,13 @@
     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) 
     1.8 -    throws IOException {
     1.9 +    public final void write(char cbuf[], int off, int len) 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) 
    1.16 -    throws IOException {
    1.17 +    public final void write(String str, int off, int len) throws IOException {
    1.18          impl.write(str, off, len);
    1.19      }
    1.20      public final void flush() throws IOException {
    1.21 @@ -46,13 +44,11 @@
    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) 
    1.26 -            throws IOException {
    1.27 +            public void write(String str, int off, int len) throws IOException {
    1.28                  w.write(str, off, len);
    1.29              }
    1.30  
    1.31 -            public void write(char[] arr, int off, int len) 
    1.32 -            throws IOException {
    1.33 +            public void write(char[] arr, int off, int len) throws IOException {
    1.34                  w.write(arr, off, len);
    1.35              }
    1.36  
    1.37 @@ -74,8 +70,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 s, int off, int len) throws IOException;
    1.42 -        public void write(char[] a, int off, int len) throws IOException;
    1.43 +        public void write(String str, int off, int len) throws IOException;
    1.44 +        public void write(char[] arr, int off, int len) throws IOException;
    1.45      }
    1.46  }
    1.47  // END: writer.final.1.0