Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperInputStream
Source: src/com/multiversesocial/hyperview/HyperInputStream.java

HyperInputStream

HyperView V3.2 — class
version V3.2 class

Summary

A wrapper for input streams. The idea being make the code work with legacy (Non NIO) applications. Currently unimplmented but in the works.

Source file: HyperInputStream.java

Hierarchy

Extends: java.io.InputStream

Implements: none

Referenced HyperView classes

Media files used

Declaration & members

public class HyperInputStream extends InputStream

Declared in src/com/multiversesocial/hyperview/HyperInputStream.java, lines 7–168. 6 field(s), 1 constructor(s), 9 method(s). Every member has an anchor you can link to (e.g. HyperInputStream.html#<id>).

Fields (6)

DeclarationValue / initializerDescriptionSource
volatile boolean closedNo comment in source; assigned in HyperInputStream(), close(); used in available(), read().line 10
byte[] markBufNo comment in source; assigned in close(), mark(), read(); used in reset().line 13
int markLimitNo comment in source; assigned in HyperInputStream(), mark(); used in read().line 14
int markPosNo comment in source; assigned in HyperInputStream(), close(), mark(); used in read(), reset().line 11
public HyperChannel parentChannelNo comment in source; assigned in HyperInputStream(); used in available(), read().line 9
int readPosNo comment in source; assigned in HyperInputStream(), read(), reset(); used in mark().line 12

Constructors (1)

SignatureDescriptionSource
public HyperInputStream(HyperChannel tChannel)6 statement(s); calls super().line 16

Methods (9)

SignatureDescriptionSource
public int available() throws IOException3 statement(s); creates IOException.
Overrides InputStream.available()
line 25
public void close() throws IOException3 statement(s).
Overrides InputStream.close()
line 39
public void mark(int tReadLimit)3 statement(s).
Overrides InputStream.mark()
line 46
public boolean markSupported()Returns true.
Overrides InputStream.markSupported()
line 60
public int read() throws IOException6 statement(s); calls parentChannel.getByte(); creates IOException.
Overrides InputStream.read()
line 65
public int read(byte[] tByte) throws IOException2 statement(s); calls read(); creates NullPointerException.
Overrides InputStream.read()
line 88
public int read(byte[] tByte, int tOffset, int tLength) throws IOException12 statement(s); calls parentChannel.getData(), Math.min(), System.arraycopy(); creates IOException, NullPointerException, IndexOutOfBoundsException.
Overrides InputStream.read()
line 97
public void reset() throws IOException2 statement(s); creates IOException.
Overrides InputStream.reset()
line 142
public long skip(long n) throws IOException4 statement(s); calls read().
Overrides InputStream.skip()
line 151

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

Also inherits the public/protected members of java.io.InputStream (JDK class) and its superclasses.

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

instantiation — HyperChannel.java, line 108

  108  hyperInputStream              = new HyperInputStream(this);
Hits--