org.apache.james.mime4j.io
Class PositionInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.james.mime4j.io.PositionInputStream
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- LimitedInputStream
public class PositionInputStream
- extends FilterInputStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
position
protected long position
PositionInputStream
public PositionInputStream(InputStream inputStream)
getPosition
public long getPosition()
available
public int available()
throws IOException
- Overrides:
available
in class FilterInputStream
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterInputStream
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class FilterInputStream
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class FilterInputStream
mark
public void mark(int readlimit)
- Overrides:
mark
in class FilterInputStream
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
Copyright © 2004-2012 JBoss by Red Hat. All Rights Reserved.