public class ExtendedByteArrayInputStream extends ByteArrayInputStream
ByteArrayInputStream
in two ways: it adds a "name"
member, and gives read-only acces to its protected members pos
,
mark
and count
.Modifier and Type | Field and Description |
---|---|
protected String |
m_name |
buf, count, mark, pos
Constructor and Description |
---|
ExtendedByteArrayInputStream(byte[] buffer,
int offset,
int length,
String name) |
ExtendedByteArrayInputStream(byte[] buffer,
String name)
Creates new ExtendedByteArrayInputStream
|
Modifier and Type | Method and Description |
---|---|
ExtendedByteArrayInputStream |
duplicate() |
boolean |
eosReached() |
byte[] |
getBuffer() |
int |
getCount() |
int |
getMark() |
String |
getName() |
int |
getPos() |
boolean |
markSupported() |
long |
seek(long param) |
available, close, mark, read, read, reset, skip
read
protected String m_name
public ExtendedByteArrayInputStream(byte[] buffer, String name)
public ExtendedByteArrayInputStream(byte[] buffer, int offset, int length, String name)
public ExtendedByteArrayInputStream duplicate()
public String getName()
public int getPos()
public int getMark()
public int getCount()
public boolean eosReached()
public long seek(long param)
public byte[] getBuffer()
public boolean markSupported()
markSupported
in class ByteArrayInputStream
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.