public class XMLSourceBufferedInputStream extends BufferedInputStream
| Modifier and Type | Field and Description |
|---|---|
protected com.sap.engine.lib.util.ArrayByte |
m_arrayByte
The buffer that holds the data.
|
in| Constructor and Description |
|---|
XMLSourceBufferedInputStream(InputStream is)
The class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.sap.engine.lib.util.ArrayByte |
getByteBuffer()
Gets the stored data from the input stream.
|
int |
read()
Reads one byte from the input stream and stores it in the buffer.
|
int |
read(byte[] readBuf)
Reads a number of bytes from the input stream and then stores them
in the specified buffer array (
readBuf) and in the cache
buffer array (m_arrayByte). |
int |
read(byte[] readBuf,
int off,
int len)
Reads up to
len bytes of data from the input stream into
the readBuf array of bytes and stores the bytes in the
m_arrayByte buffer. |
available, close, mark, markSupported, reset, skipprotected com.sap.engine.lib.util.ArrayByte m_arrayByte
public XMLSourceBufferedInputStream(InputStream is)
is - the buffered streamprotected com.sap.engine.lib.util.ArrayByte getByteBuffer()
public int read()
throws IOException
-1 indicates there is no more data to read.read in class BufferedInputStreamIOException - if the operation failspublic int read(byte[] readBuf)
throws IOException
readBuf) and in the cache
buffer array (m_arrayByte). The number of bytes actually read
is returned as an integer. This method repeats until input data is
unavailable, an end of file is detected, or an exception is thrown.read in class FilterInputStreamreadBuf - the buffer into which the input stream data is readIOException - if the operation failspublic int read(byte[] readBuf,
int off,
int len)
throws IOException
len bytes of data from the input stream into
the readBuf array of bytes and stores the bytes in the
m_arrayByte buffer. An attempt is made to read as many as
len bytes, but a smaller number may be read, including
zero bytes. The number of bytes actually read is returned as an integer;
-1 indicates there is no more data to read.read in class BufferedInputStreamreadBuf - the buffer into which the input stream data is readoff - the start offset in array readBuf
where the data is writtenlen - the maximum number of bytes to readIOException - if the operation fails| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-ADMIN
|
[sap.com] tc/ep/admin/api/extd
|
api
|
EP-PIN
|
Copyright 2021 SAP SE Complete Copyright Notice