public class StoppableInputStream extends FilterInputStream implements Stoppable, BoundedRangeModel
Constructor and Description |
---|
StoppableInputStream(InputStream in,
int length) |
StoppableInputStream(URL url) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener x) |
int |
getExtent() |
int |
getMaximum() |
int |
getMinimum() |
BoundedRangeModel |
getModel() |
int |
getValue() |
boolean |
getValueIsAdjusting() |
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
removeChangeListener(ChangeListener x) |
void |
reset() |
void |
setExtent(int newExtent) |
void |
setMaximum(int newMaximum) |
void |
setMinimum(int newMinimum) |
void |
setRangeProperties(int value,
int extent,
int min,
int max,
boolean adjusting) |
void |
setValue(int newValue) |
void |
setValueIsAdjusting(boolean b) |
long |
skip(long n) |
void |
stop() |
available, close, markSupported
public StoppableInputStream(URL url) throws IOException
IOException
public StoppableInputStream(InputStream in, int length)
public BoundedRangeModel getModel()
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public void mark(int readlimit)
mark
in class FilterInputStream
public void addChangeListener(ChangeListener x)
addChangeListener
in interface BoundedRangeModel
public void removeChangeListener(ChangeListener x)
removeChangeListener
in interface BoundedRangeModel
public int getExtent()
getExtent
in interface BoundedRangeModel
public int getMaximum()
getMaximum
in interface BoundedRangeModel
public int getMinimum()
getMinimum
in interface BoundedRangeModel
public int getValue()
getValue
in interface BoundedRangeModel
public boolean getValueIsAdjusting()
getValueIsAdjusting
in interface BoundedRangeModel
public void setExtent(int newExtent)
setExtent
in interface BoundedRangeModel
public void setMaximum(int newMaximum)
setMaximum
in interface BoundedRangeModel
public void setMinimum(int newMinimum)
setMinimum
in interface BoundedRangeModel
public void setRangeProperties(int value, int extent, int min, int max, boolean adjusting)
setRangeProperties
in interface BoundedRangeModel
public void setValue(int newValue)
setValue
in interface BoundedRangeModel
public void setValueIsAdjusting(boolean b)
setValueIsAdjusting
in interface BoundedRangeModel
Copyright © 2000–2017 FreeHEP. All rights reserved.