public interface LongString
Modifier and Type | Field and Description |
---|---|
static long |
MAX_LENGTH |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Get the content as a byte array.
|
java.io.DataInputStream |
getStream()
Get the content stream.
|
long |
length() |
java.lang.String |
toString()
Get the content as a String.
|
static final long MAX_LENGTH
long length()
LongString
in bytes >= 0 <= MAX_LENGTHjava.io.DataInputStream getStream() throws java.io.IOException
LongString
java.io.IOException
- if an error is encounteredbyte[] getBytes()
LongString
.
Repeated calls to this function may return the same array.
This function will fail if this.length() > Integer.MAX_VALUE
,
throwing an IllegalStateException
.LongString
java.lang.String toString()
toString
in class java.lang.Object
LongString
as a string