return (int) position();
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public final synchronized void mark(final int markpos) {
try {
}
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public final boolean markSupported() {
return true;
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public final synchronized int read() throws IOException {
return in.read();
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public final int read(final byte[] buf, final int off, final int len) throws IOException {
return in.read(buf, off, len);
in.readFully(buf);
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public final synchronized void reset() throws IOException {
in.seek(mark);
in.seek(pos);
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public final long skip(final long size) throws IOException {
- return (long) in.skipBytes((int) size);
+ return in.skipBytes((int) size);
}
}