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.InputStream
InputStream based onVectorBuffer
data.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Constructor Summary
Constructors Constructor Description VectorBufferedInputStream(VectorBuffer vb)
Create anInputStream
which gets its data from an container with byte buffer references.VectorBufferedInputStream(VectorBufferedOutputStream vbos)
Create anInputStream
which gets its data from aVectorBufferedOutputStream
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
mark(int readlimit)
boolean
markSupported()
Returns always true because mark/reset is supported.int
read()
int
read(byte[] buf, int offset, int len)
void
reset()
long
skip(long n)
-
-
-
Constructor Detail
-
VectorBufferedInputStream
public VectorBufferedInputStream(VectorBuffer vb)
Create anInputStream
which gets its data from an container with byte buffer references.- Parameters:
vb
- container with byte buffer references
-
VectorBufferedInputStream
public VectorBufferedInputStream(VectorBufferedOutputStream vbos)
Create anInputStream
which gets its data from aVectorBufferedOutputStream
.- Parameters:
vbos
-
-
-
Method Detail
-
available
public int available()
- Overrides:
available
in classjava.io.InputStream
- See Also:
InputStream.available()
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classjava.io.InputStream
- See Also:
InputStream.mark(int)
-
reset
public void reset()
- Overrides:
reset
in classjava.io.InputStream
- See Also:
InputStream.reset()
-
markSupported
public boolean markSupported()
Returns always true because mark/reset is supported.- Overrides:
markSupported
in classjava.io.InputStream
- Returns:
- true
- See Also:
InputStream.markSupported()
-
read
public int read()
- Specified by:
read
in classjava.io.InputStream
- See Also:
InputStream.read()
-
read
public int read(byte[] buf, int offset, int len)
- Overrides:
read
in classjava.io.InputStream
- See Also:
InputStream.read(byte[],int,int)
-
skip
public long skip(long n)
- Overrides:
skip
in classjava.io.InputStream
- See Also:
InputStream.skip(long)
-
-