| java.lang.Object org.makumba.Text
Constructor Summary | |
public | Text(InputStream is, int length) make a Text from the given input stream, with the given length
The content in the input stream must match the length.
No diskswap will be attempted. | public | Text(InputStream is) make a Text by reading the input stream. | public | Text(String s) make a Text from the String. | public | Text(byte[] b) make a Text from the given byte array. | public | Text(byte[] b, int start, int length) make a Text from the given byte array. |
FILE_LIMIT | public static int FILE_LIMIT(Code) | | |
Text | public Text(InputStream is, int length)(Code) | | make a Text from the given input stream, with the given length
The content in the input stream must match the length.
No diskswap will be attempted. If you wish for the info to be swapped to disk, use the constructor Text(InputStream)
|
Text | public Text(InputStream is)(Code) | | make a Text by reading the input stream. If there is a lot of data, it will be swapped to disk
|
Text | public Text(String s)(Code) | | make a Text from the String. If there is a lot of data, it will be swapped to disk
|
Text | public Text(byte[] b)(Code) | | make a Text from the given byte array. If there is a lot of data, it will be swapped to disk
|
Text | public Text(byte[] b, int start, int length)(Code) | | make a Text from the given byte array. If there is a lot of data, it will be swapped to disk
|
compare | public boolean compare(InputStream is) throws IOException(Code) | | compare the content to the content of a given stream, and closes the stream
|
equals | public boolean equals(Object other)(Code) | | Indicates whether the other object is "equal to" this Text.
|
getText | public static Text getText(Object value)(Code) | | convenience method for making a text out of another Text, InputStream, String, or byte[]
|
length | public int length()(Code) | | |
toBinaryStream | public InputStream toBinaryStream()(Code) | | Read the text content as a binary stream. Recommended for long content
|
toString | public String toString()(Code) | | converts the text content to a string
|
|
|