Methods Summary |
---|
public int | available()
return m_inputStream.available();
|
public void | close()
m_inputStream.close();
|
public void | mark(int readLimit)
m_isMarkSet = true;
m_mark = m_position;
m_inputStream.mark( readLimit );
|
public boolean | markSupported()
return true;
|
protected java.io.InputStream | newStream()
return new BufferedInputStream( new FileInputStream( m_filename ), m_bufferSize );
|
public int | read()
m_position++;
return m_inputStream.read();
|
public int | read(byte[] bytes, int offset, int length)
final int count = m_inputStream.read( bytes, offset, length );
m_position += count;
return count;
|
public void | reset()
if( !m_isMarkSet )
{
throw new IOException( "Unmarked Stream" );
}
try
{
m_inputStream.reset();
}
catch( final IOException ioe )
{
try
{
m_inputStream.close();
m_inputStream = newStream();
m_inputStream.skip( m_mark );
m_position = m_mark;
}
catch( final Exception e )
{
throw new IOException( "Cannot reset current Stream: " + e.getMessage() );
}
}
|
public long | skip(long count)
m_position += count;
return m_inputStream.skip( count );
|