Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperInputStream
Source: src/com/multiversesocial/hyperview/HyperInputStream.java
A wrapper for input streams. The idea being make the code work with legacy (Non NIO) applications. Currently unimplmented but in the works.
Extends: java.io.InputStream
Implements: none
public class HyperInputStream extends InputStream
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
volatile boolean closed | No comment in source; assigned in HyperInputStream(), close(); used in available(), read(). | ||
byte[] markBuf | No comment in source; assigned in close(), mark(), read(); used in reset(). | ||
int markLimit | No comment in source; assigned in HyperInputStream(), mark(); used in read(). | ||
int markPos | No comment in source; assigned in HyperInputStream(), close(), mark(); used in read(), reset(). | ||
public HyperChannel parentChannel | No comment in source; assigned in HyperInputStream(); used in available(), read(). | ||
int readPos | No comment in source; assigned in HyperInputStream(), read(), reset(); used in mark(). |
| Signature | Description | Source |
|---|---|---|
public HyperInputStream(HyperChannel tChannel) | 6 statement(s); calls super(). |
| Signature | Description | Source |
|---|---|---|
public int available() throws IOException | 3 statement(s); creates IOException. | |
public void close() throws IOException | 3 statement(s). | |
public void mark(int tReadLimit) | 3 statement(s). | |
public boolean markSupported() | Returns true. | |
public int read() throws IOException | 6 statement(s); calls parentChannel.getByte(); creates IOException. | |
public int read(byte[] tByte) throws IOException | 2 statement(s); calls read(); creates NullPointerException. | |
public int read(byte[] tByte, int tOffset, int tLength) throws IOException | 12 statement(s); calls parentChannel.getData(), Math.min(), System.arraycopy(); creates IOException, NullPointerException, IndexOutOfBoundsException. | |
public void reset() throws IOException | 2 statement(s); creates IOException. | |
public long skip(long n) throws IOException | 4 statement(s); calls read(). |
instantiation — HyperChannel.java, line 108
108 hyperInputStream = new HyperInputStream(this);