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.InputStream
Basic class for framed stream operations.- Author:
- klausj
-
-
Field Summary
Fields Modifier and Type Field Description protected int
frameSize
protected java.io.IOException
frameSizeException
-
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)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buf) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public abstract int read(byte[] buf, int offset, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-