public class TriggeredInputStream
extends java.io.BufferedInputStream
Modifier and Type | Field and Description |
---|---|
protected boolean |
forceSkipNotification |
protected java.util.List |
listeners |
protected boolean |
notification |
Constructor and Description |
---|
TriggeredInputStream(java.io.InputStream in,
int size,
java.util.List listeners) |
TriggeredInputStream(java.io.InputStream in,
java.util.List listeners) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExt() |
protected void |
notifyListeners(long size)
Notify listeners about current data loaded.
|
int |
read() |
int |
read(byte[] b,
int offset,
int length) |
void |
setExt(java.lang.String ext) |
void |
setForceSkipNotification(boolean forceSkipNotification) |
void |
setMaxlength(long maxlength) |
long |
skip(long bytes) |
protected java.util.List listeners
protected boolean notification
protected boolean forceSkipNotification
public TriggeredInputStream(java.io.InputStream in, java.util.List listeners)
in
- public TriggeredInputStream(java.io.InputStream in, int size, java.util.List listeners)
in
- size
- public int read(byte[] b, int offset, int length) throws java.io.IOException
read
in class java.io.BufferedInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.BufferedInputStream
java.io.IOException
public long skip(long bytes) throws java.io.IOException
skip
in class java.io.BufferedInputStream
java.io.IOException
protected void notifyListeners(long size)
size
- public void setMaxlength(long maxlength)
public void setForceSkipNotification(boolean forceSkipNotification)
public java.lang.String getExt()
public void setExt(java.lang.String ext)