Package ipsk.io

Class FramedInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    FramedEditingInputStream

    public abstract class FramedInputStream
    extends java.io.InputStream
    Basic class for framed stream operations.
    Author:
    klausj
    • Constructor Summary

      Constructors 
      Constructor Description
      FramedInputStream​(int frameSize)  
    • Method Summary

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

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

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

      • frameSize

        protected int frameSize
      • frameSizeException

        protected java.io.IOException frameSizeException
    • Constructor Detail

      • FramedInputStream

        public FramedInputStream​(int frameSize)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] buf)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public abstract int read​(byte[] buf,
                                 int offset,
                                 int len)
                          throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException