Package ipsk.io
Class VectorBufferedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- ipsk.io.VectorBufferedInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class VectorBufferedInputStream extends java.io.InputStreamInputStream based onVectorBufferdata.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Constructor Summary
Constructors Constructor Description VectorBufferedInputStream(VectorBuffer vb)Create anInputStreamwhich gets its data from an container with byte buffer references.VectorBufferedInputStream(VectorBufferedOutputStream vbos)Create anInputStreamwhich gets its data from aVectorBufferedOutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidmark(int readlimit)booleanmarkSupported()Returns always true because mark/reset is supported.intread()intread(byte[] buf, int offset, int len)voidreset()longskip(long n)
-
-
-
Constructor Detail
-
VectorBufferedInputStream
public VectorBufferedInputStream(VectorBuffer vb)
Create anInputStreamwhich gets its data from an container with byte buffer references.- Parameters:
vb- container with byte buffer references
-
VectorBufferedInputStream
public VectorBufferedInputStream(VectorBufferedOutputStream vbos)
Create anInputStreamwhich gets its data from aVectorBufferedOutputStream.- Parameters:
vbos-
-
-
Method Detail
-
available
public int available()
- Overrides:
availablein classjava.io.InputStream- See Also:
InputStream.available()
-
mark
public void mark(int readlimit)
- Overrides:
markin classjava.io.InputStream- See Also:
InputStream.mark(int)
-
reset
public void reset()
- Overrides:
resetin classjava.io.InputStream- See Also:
InputStream.reset()
-
markSupported
public boolean markSupported()
Returns always true because mark/reset is supported.- Overrides:
markSupportedin classjava.io.InputStream- Returns:
- true
- See Also:
InputStream.markSupported()
-
read
public int read()
- Specified by:
readin classjava.io.InputStream- See Also:
InputStream.read()
-
read
public int read(byte[] buf, int offset, int len)- Overrides:
readin classjava.io.InputStream- See Also:
InputStream.read(byte[],int,int)
-
skip
public long skip(long n)
- Overrides:
skipin classjava.io.InputStream- See Also:
InputStream.skip(long)
-
-