Package ipsk.io
Class FramedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- ipsk.io.FramedInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
FramedEditingInputStream
public abstract class FramedInputStream extends java.io.InputStreamBasic class for framed stream operations.- Author:
- klausj
-
-
Field Summary
Fields Modifier and Type Field Description protected intframeSizeprotected java.io.IOExceptionframeSizeException
-
Constructor Summary
Constructors Constructor Description FramedInputStream(int frameSize)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intread()intread(byte[] buf)abstract intread(byte[] buf, int offset, int len)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] buf) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public abstract int read(byte[] buf, int offset, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
-