The method reads the whole input stream, parses it and returns a list of strings.
Using this method on large feeds is inherently unsafe and may lead to an out-of-memory condition. Instead use
method readLine() and process one line at a time.
The method reads the whole input stream as one string and returns it.
Using this method is unsafe if the length of the input stream is not known and may lead to an out-of-memory
condition. Instead use method readN(Number).
The method reads the whole input stream, parses it and returns a list of strings.
Using this method on large feeds is inherently unsafe and may lead to an out-of-memory condition. Instead use
method readLine() and process one line at a time.
The method reads the whole input stream as one string and returns it.
Using this method is unsafe if the length of the input stream is not known and may lead to an out-of-memory
condition. Instead use method readN(Number).
Returns:
a string, which represents the whole content of the InputStream
Throws:
IOException - if something went wrong while reading from the underlying stream
Reads multiple characters from the stream as string. The actual number of characters that were read can be
determined from the length of the returned string. If the end of the stream is reached and no more characters can
be read, the method exits with an exception.
Parameters:
length - the number of characters to read.
Returns:
a string whose length is controlled by the length parameter. The actual number of characters that were
read can be determined from the length of the returned string.
Throws:
an - exception if the stream is exhausted
Deprecated:
use readN(Number) instead which does not throw an exception if the stream is exhausted
The method reads the whole input stream, parses it and returns a list of strings.
Using this method on large feeds is inherently unsafe and may lead to an out-of-memory condition. Instead use
method readLine() and process one line at a time.
Reads n characters from the stream as string. The actual number of characters that were read can be determined
from the length of the returned string. If the end of the stream is reached and no more characters can be read,
the method returns null.
Parameters:
n - the number of characters to read
Returns:
a string whose maximum length is controlled by the n parameter, or null if the end of the stream is
reached and no more characters can be read
The method reads the whole input stream as one string and returns it.
Using this method is unsafe if the length of the input stream is not known and may lead to an out-of-memory
condition. Instead use method readN(Number).
Returns:
a string, which represents the whole content of the InputStream
Throws:
IOException - if something went wrong while reading from the underlying stream
true guarantees that the stream is ready to read without waiting for input. A false
response means that the stream may or may not block to wait for input. Note that returning
false does not guarantee that the next read() will block.