Changeset 12318


Ignore:
Timestamp:
01/01/10 10:42:21 (11 years ago)
Author:
ehuelsmann
Message:

Remove trailing spaces/tabs which light my editing buffers red.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java

    r12317 r12318  
    5959            super(null);
    6060        }
    61        
     61
    6262        private byte[] read_buf = new byte[1];
    6363
     
    7373            }
    7474        }
    75                
     75
    7676        @Override
    7777        public final int read(byte[] b, int off, int len) throws IOException {
     
    163163        }
    164164    }
    165    
     165
    166166    // dummy reader which we need to call the Pushback constructor
    167167    // because a null value won't work
    168168    private static Reader staticReader = new StringReader("");
    169    
     169
    170170    private class RandomAccessReader extends PushbackReader {
    171171
     
    180180            RandomAccessCharacterFile.this.close();
    181181        }
    182        
     182
    183183        private char[] read_buf = new char[1];
    184184
     
    186186        public final int read() throws IOException {
    187187            int n = this.read(read_buf);
    188            
     188
    189189            if (n == 1)
    190190                return read_buf[0];
     
    219219            return RandomAccessCharacterFile.this.read(cbuf, 0, cbuf.length);
    220220        }
    221        
     221
    222222        @Override
    223223        public final int read(char[] cb, int off, int len) throws IOException {
     
    253253
    254254    final static int BUFSIZ = 4*1024; // setting this to a small value like 8 is helpful for testing.
    255  
     255
    256256    private RandomAccessWriter writer;
    257257    private RandomAccessReader reader;
     
    259259    private RandomAccessOutputStream outputStream;
    260260    private FileChannel fcn;
    261  
     261
    262262    private Charset cset;
    263263    private CharsetEncoder cenc;
    264264    private CharsetDecoder cdec;
    265  
     265
    266266    /**
    267267     * bbuf is treated as a cache of the file content.
     
    304304        outputStream = new RandomAccessOutputStream();
    305305    }
    306  
     306
    307307    public Writer getWriter() {
    308308        return writer;
    309309    }
    310  
     310
    311311    public PushbackReader getReader() {
    312312        return reader;
    313313    }
    314  
     314
    315315    public PushbackInputStream getInputStream() {
    316316        return inputStream;
    317317    }
    318  
     318
    319319    public OutputStream getOutputStream() {
    320320        return outputStream;
    321321    }
    322  
     322
    323323    public final void close() throws IOException {
    324324        internalFlush(true);
    325325        fcn.close();
    326326    }
    327  
     327
    328328    public final void flush() throws IOException {
    329329        internalFlush(false);
     
    417417        }
    418418    }
    419  
     419
    420420    public final long position() throws IOException {
    421421        return bbufpos + bbuf.position(); // the logical position within the file.
     
    467467        return pos - off;
    468468    }
    469        
     469
    470470    // a method corresponding to the good ol' ungetc in C.
    471471    // This function may fail when using (combined) character codes that use
     
    502502        position(pos);
    503503    }
    504  
     504
    505505    public final void unreadByte(byte b) throws IOException {
    506506        long pos = position() - 1;
Note: See TracChangeset for help on using the changeset viewer.