Package org.loboevolution.common
Class IORoutines
java.lang.Object
org.loboevolution.common.IORoutines
IORoutines class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamgetInputStream(URLConnection connection) getInputStream.static byte[]load(InputStream in, int initBufferSize) load.static StringloadAsText(InputStream in, String encoding) Load as text.static StringloadAsText(InputStream in, String encoding, int bufferSize) Load as text.
-
Constructor Details
-
IORoutines
public IORoutines()
-
-
Method Details
-
loadAsText
Load as text.- Parameters:
in- the inencoding- the encoding- Returns:
- the string
- Throws:
IOException- Signals that an I/O exception has occurred.
-
loadAsText
Load as text.- Parameters:
in- the inencoding- the encodingbufferSize- the buffer size- Returns:
- the string
- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
load.
- Parameters:
in- aInputStreamobject.initBufferSize- aIntegerobject.- Returns:
- an array of
objects.
invalid reference
byte - Throws:
IOException- if any.
-
getInputStream
getInputStream.
- Parameters:
connection- aURLConnectionobject.- Returns:
- a
InputStreamobject. - Throws:
IOException- if any.
-