@Override public long position() throws IOException { ensureOpen(); return ch.position(); }
@Override public long size() throws IOException { ensureOpen(); return ch.size(); }
@Override public long position() throws IOException { ensureOpen(); return ch.position(); }
@Override public SeekableByteChannel position(long newPosition) throws IOException { ensureOpen(); ch.position(newPosition); savedPos = newPosition; return this; }
@Override public long position() throws IOException { ensureOpen(); return ch.position(); }
@Override public SeekableByteChannel setPosition(long newPosition) throws IOException { ensureOpen(); ch.position(newPosition); savedPos = newPosition; return this; }
@Override public long size() throws IOException { ensureOpen(); return ch.size(); }
@Override public long size() throws IOException { ensureOpen(); return ch.size(); }
@Override public int read(ByteBuffer arg0) throws IOException { ensureOpen(); int r = ch.read(arg0); savedPos = ch.position(); return r; }
@Override public SeekableByteChannel truncate(long size) throws IOException { ensureOpen(); ch.truncate(size); savedPos = ch.position(); return this; }
@Override public SeekableByteChannel truncate(long size) throws IOException { ensureOpen(); ch.truncate(size); savedPos = ch.position(); return this; }
@Override public int write(ByteBuffer arg0) throws IOException { ensureOpen(); int w = ch.write(arg0); savedPos = ch.position(); return w; }
@Override public int read(ByteBuffer arg0) throws IOException { ensureOpen(); int r = ch.read(arg0); savedPos = ch.position(); return r; }
@Override public int write(ByteBuffer arg0) throws IOException { ensureOpen(); int w = ch.write(arg0); savedPos = ch.position(); return w; }
@Override public int read(ByteBuffer arg0) throws IOException { ensureOpen(); int r = ch.read(arg0); savedPos = ch.position(); return r; }
@Override public SeekableByteChannel truncate(long size) throws IOException { ensureOpen(); ch.truncate(size); savedPos = ch.position(); return this; }
@Override public int write(ByteBuffer arg0) throws IOException { ensureOpen(); int w = ch.write(arg0); savedPos = ch.position(); return w; }
public AutoFileChannelWrapper(File file) throws IOException { this.file = file; this.curTime = System.currentTimeMillis(); AutoPool.getInstance().add(this); ensureOpen(); }
public AutoFileChannelWrapper(File file) throws IOException { this.file = file; this.curTime = currentTimeMillis(); AutoPool.getInstance().add(this); ensureOpen(); }
public AutoFileChannelWrapper(File file) throws IOException { this.file = file; this.curTime = System.currentTimeMillis(); AutoPool.getInstance().add(this); ensureOpen(); }