Package ipsk.io

Class InterleaveEditInputStream

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

    public class InterleaveEditInputStream
    extends FramedEditingInputStream
    Edits channels (interleaved data) from underlying stream.
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    • Constructor Summary

      Constructors 
      Constructor Description
      InterleaveEditInputStream​(java.io.InputStream is, int frameSize, int frameOffset, int frameRead)
      Edits bytes from frameOffset to frameOffset+frameRead from each frame with given framesize.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int read​(byte[] buf, int offset, int len)  
      long skip​(long n)  
      • Methods inherited from class java.io.InputStream

        available, mark, markSupported, readAllBytes, readNBytes, reset, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InterleaveEditInputStream

        public InterleaveEditInputStream​(java.io.InputStream is,
                                         int frameSize,
                                         int frameOffset,
                                         int frameRead)
        Edits bytes from frameOffset to frameOffset+frameRead from each frame with given framesize.
    • Method Detail

      • read

        public int read​(byte[] buf,
                        int offset,
                        int len)
                 throws java.io.IOException
        Specified by:
        read in class FramedInputStream
        Throws:
        java.io.IOException
      • skip

        public long skip​(long n)
                  throws java.io.IOException
        Overrides:
        skip in class java.io.InputStream
        Throws:
        java.io.IOException