ucar.unidata.util
Class ByteStringInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by ucar.unidata.util.ByteStringInputStream
All Implemented Interfaces:
Closeable

public class ByteStringInputStream
extends InputStream

Version:
$Revision: 1.10 $ $Date: 2006/05/05 19:19:33 $
Author:
$Author: jeffmc $

Field Summary
protected  ByteString bs_
          _more_
protected  int mark_
          _more_
protected  int pos_
          _more_
 
Constructor Summary
ByteStringInputStream(ByteString bs)
          _more_
 
Method Summary
 int available()
          _more_
 void mark(int readAheadLimit)
          _more_
 boolean markSupported()
          _more_
 int read()
          _more_
 int read(byte[] dst, int off, int nbytes)
          _more_
 void reset()
          _more_
 long skip(long nbytes)
          _more_
 
Methods inherited from class java.io.InputStream
close, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bs_

protected final ByteString bs_
_more_


pos_

protected int pos_
_more_


mark_

protected int mark_
_more_

Constructor Detail

ByteStringInputStream

public ByteStringInputStream(ByteString bs)
_more_

Parameters:
bs -
Method Detail

read

public int read()
_more_

Specified by:
read in class InputStream
Returns:
_more_

read

public int read(byte[] dst,
                int off,
                int nbytes)
_more_

Overrides:
read in class InputStream
Parameters:
dst -
off -
nbytes -
Returns:
_more_

skip

public long skip(long nbytes)
_more_

Overrides:
skip in class InputStream
Parameters:
nbytes -
Returns:
_more_

available

public int available()
_more_

Overrides:
available in class InputStream
Returns:
_more_

markSupported

public boolean markSupported()
_more_

Overrides:
markSupported in class InputStream
Returns:
_more_

mark

public void mark(int readAheadLimit)
_more_

Overrides:
mark in class InputStream
Parameters:
readAheadLimit -

reset

public void reset()
_more_

Overrides:
reset in class InputStream