org.apache.james.util.io
Class ResettableFileInputStream
java.lang.Object
java.io.InputStream
org.apache.james.util.io.ResettableFileInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class ResettableFileInputStream
- extends java.io.InputStream
- Author:
- Federico Barbieri
Methods inherited from class java.io.InputStream |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BUFFER_SIZE
protected static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
m_filename
protected final java.lang.String m_filename
m_bufferSize
protected int m_bufferSize
m_inputStream
protected java.io.InputStream m_inputStream
m_position
protected long m_position
m_mark
protected long m_mark
m_isMarkSet
protected boolean m_isMarkSet
ResettableFileInputStream
public ResettableFileInputStream(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
ResettableFileInputStream
public ResettableFileInputStream(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException
ResettableFileInputStream
public ResettableFileInputStream(java.lang.String filename,
int bufferSize)
throws java.io.IOException
- Throws:
java.io.IOException
mark
public void mark(int readLimit)
- Overrides:
mark
in class java.io.InputStream
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class java.io.InputStream
reset
public void reset()
throws java.io.IOException
- Overrides:
reset
in class java.io.InputStream
- Throws:
java.io.IOException
newStream
protected java.io.InputStream newStream()
throws java.io.IOException
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Overrides:
available
in class java.io.InputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
skip
public long skip(long count)
throws java.io.IOException
- Overrides:
skip
in class java.io.InputStream
- Throws:
java.io.IOException
Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.