Package ipsk.io

Class VectorBufferedInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class VectorBufferedInputStream
    extends java.io.InputStream
    InputStream based on VectorBuffer data.
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    • Constructor Detail

      • VectorBufferedInputStream

        public VectorBufferedInputStream​(VectorBuffer vb)
        Create an InputStream which gets its data from an container with byte buffer references.
        Parameters:
        vb - container with byte buffer references
    • Method Detail

      • available

        public int available()
        Overrides:
        available in class java.io.InputStream
        See Also:
        InputStream.available()
      • mark

        public void mark​(int readlimit)
        Overrides:
        mark in class java.io.InputStream
        See Also:
        InputStream.mark(int)
      • reset

        public void reset()
        Overrides:
        reset in class java.io.InputStream
        See Also:
        InputStream.reset()
      • markSupported

        public boolean markSupported()
        Returns always true because mark/reset is supported.
        Overrides:
        markSupported in class java.io.InputStream
        Returns:
        true
        See Also:
        InputStream.markSupported()
      • read

        public int read()
        Specified by:
        read in class java.io.InputStream
        See Also:
        InputStream.read()
      • read

        public int read​(byte[] buf,
                        int offset,
                        int len)
        Overrides:
        read in class java.io.InputStream
        See Also:
        InputStream.read(byte[],int,int)
      • skip

        public long skip​(long n)
        Overrides:
        skip in class java.io.InputStream
        See Also:
        InputStream.skip(long)