iText 7 7.1.8 API
|
Byte buffer container including length of valid data. More...
Public Member Functions |
|||
ByteBuffer (int initialCapacity) | |||
|
|||
ByteBuffer (byte[] buffer) | |||
|
|||
ByteBuffer (byte[] buffer, int length) | |||
ByteBuffer (Stream @in) | |||
Loads the stream into a buffer. More... |
|||
ByteBuffer (byte[] buffer, int offset, int length) | |||
virtual Stream | GetByteStream () | ||
|
|||
virtual int | Length () | ||
virtual byte | ByteAt (int index) | ||
virtual int | CharAt (int index) | ||
virtual void | Append (byte b) | ||
Appends a byte to the buffer. More... |
|||
virtual void | Append (byte[] bytes, int offset, int len) | ||
Appends a byte array or part of to the buffer. More... |
|||
virtual void | Append (byte[] bytes) | ||
Append a byte array to the buffer More... |
|||
virtual void | Append (iText.Kernel.XMP.Impl.ByteBuffer anotherBuffer) | ||
Append another buffer to this buffer. More... |
|||
virtual String | GetEncoding () | ||
Detects the encoding of the byte buffer, stores and returns it. More... |
|||
Byte buffer container including length of valid data.
|
inline |
buffer | a byte array that will be wrapped with |
|
inline |
buffer | a byte array that will be wrapped with . |
length | the length of valid bytes in the array |
|
inline |
Loads the stream into a buffer.
in | an InputStream |
System.IO.IOException | If the stream cannot be read. |
|
inline |
buffer | a byte array that will be wrapped with . |
offset | the offset of the provided buffer. |
length | the length of valid bytes in the array |
|
inlinevirtual |
Appends a byte to the buffer.
b | a byte |
|
inlinevirtual |
Append a byte array to the buffer
bytes | a byte array |
|
inlinevirtual |
Appends a byte array or part of to the buffer.
bytes | a byte array |
offset | an offset with |
len |
|
inlinevirtual |
Append another buffer to this buffer.
anotherBuffer | another |
|
inlinevirtual |
Note: Only the byte up to length are valid! @return Returns the inner byte buffer. /
public byte[] getBuffer() { return buffer; } /**
index | the index to retrieve the byte from |
|
inlinevirtual |
index | the index to retrieve a byte as int or char. |
|
inlinevirtual |
Detects the encoding of the byte buffer, stores and returns it.
Detects the encoding of the byte buffer, stores and returns it. Only UTF-8, UTF-16LE/BE and UTF-32LE/BE are recognized. Note: UTF-32 flavors are not supported by Java, the XML-parser will complain.
|
inlinevirtual |