Java org.apache.commons.io IOUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.io IOUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.io IOUtils.

The text is from its open source code.

Subclass

org.apache.commons.io.IOUtils has subclasses.
Click this link to see all its subclasses.

Field

charDIR_SEPARATOR_UNIX
The Unix directory separator character.
charDIR_SEPARATOR
The system directory separator character.
StringLINE_SEPARATOR_UNIX
The Unix line separator string.
StringLINE_SEPARATOR_WINDOWS
The Windows line separator string.
StringLINE_SEPARATOR
The system line separator string.

Constructor

IOUtils()
Instances should NOT be constructed in standard programming.

Method

voidcloseQuietly(Reader input)
Unconditionally close an Reader.
voidcloseQuietly(Writer output)
Unconditionally close a Writer.
voidcloseQuietly(InputStream input)
Unconditionally close an InputStream.
voidcloseQuietly(OutputStream output)
Unconditionally close an OutputStream.
booleancontentEquals(InputStream input1, InputStream input2)
Compare the contents of two Streams to determine if they are equal or not.
booleancontentEquals(Reader input1, Reader input2)
Compare the contents of two Readers to determine if they are equal or not.
intcopy(InputStream input, OutputStream output)
Copy bytes from an InputStream to an OutputStream.
voidcopy(InputStream input, Writer output)
Copy bytes from an InputStream to chars on a Writer using the default character encoding of the platform.
intcopy(Reader input, Writer output)
Copy chars from a Reader to a Writer.
voidcopy(Reader input, OutputStream output)
Copy chars from a Reader to bytes on an OutputStream using the default character encoding of the platform, and calling flush.
voidcopy(InputStream input, Writer output, String encoding)
Copy bytes from an InputStream to chars on a Writer using the specified character encoding.
voidcopy(Reader input, OutputStream output, String encoding)
Copy chars from a Reader to bytes on an OutputStream using the specified character encoding, and calling flush.
longcopyLarge(InputStream input, OutputStream output)
Copy bytes from a large (over 2GB) InputStream to an OutputStream.
longcopyLarge(Reader input, Writer output)
Copy chars from a large (over 2GB) Reader to a Writer.
LineIteratorlineIterator(InputStream input, String encoding)
Return an Iterator for the lines in an InputStream, using the character encoding specified (or default encoding if null).
LineIteratorlineIterator(Reader reader)
Return an Iterator for the lines in a Reader.
ListreadLines(InputStream input)
Get the contents of an InputStream as a list of Strings, one entry per line, using the default character encoding of the platform.
ListreadLines(Reader input)
Get the contents of a Reader as a list of Strings, one entry per line.
ListreadLines(InputStream input, String encoding)
Get the contents of an InputStream as a list of Strings, one entry per line, using the specified character encoding.
byte[]toByteArray(InputStream input)
Get the contents of an InputStream as a byte[].
byte[]toByteArray(Reader input)
Get the contents of a Reader as a byte[] using the default character encoding of the platform.
byte[]toByteArray(String input)
Get the contents of a String as a byte[] using the default character encoding of the platform.
byte[]toByteArray(Reader input, String encoding)
Get the contents of a Reader as a byte[] using the specified character encoding.
char[]toCharArray(InputStream is)
Get the contents of an InputStream as a character array using the default character encoding of the platform.
char[]toCharArray(Reader input)
Get the contents of a Reader as a character array.
char[]toCharArray(InputStream is, String encoding)
Get the contents of an InputStream as a character array using the specified character encoding.
InputStreamtoInputStream(String input)
Convert the specified string to an input stream, encoded as bytes using the default character encoding of the platform.
InputStreamtoInputStream(String input, String encoding)
Convert the specified string to an input stream, encoded as bytes using the specified character encoding.
StringtoString(InputStream input)
Get the contents of an InputStream as a String using the default character encoding of the platform.
StringtoString(Reader input)
Get the contents of a Reader as a String.
StringtoString(byte[] input)
Get the contents of a byte[] as a String using the default character encoding of the platform.
StringtoString(InputStream input, String encoding)
Get the contents of an InputStream as a String using the specified character encoding.
StringtoString(byte[] input, String encoding)
Get the contents of a byte[] as a String using the specified character encoding.
voidwrite(byte[] data, OutputStream output)
Writes bytes from a byte[] to an OutputStream.
voidwrite(byte[] data, Writer output)
Writes bytes from a byte[] to chars on a Writer using the default character encoding of the platform.
voidwrite(char[] data, Writer output)
Writes chars from a char[] to a Writer using the default character encoding of the platform.
voidwrite(char[] data, OutputStream output)
Writes chars from a char[] to bytes on an OutputStream.
voidwrite(String data, Writer output)
Writes chars from a String to a Writer.
voidwrite(String data, OutputStream output)
Writes chars from a String to bytes on an OutputStream using the default character encoding of the platform.
voidwrite(StringBuffer data, Writer output)
Writes chars from a StringBuffer to a Writer.
voidwrite(StringBuffer data, OutputStream output)
Writes chars from a StringBuffer to bytes on an OutputStream using the default character encoding of the platform.
voidwrite(byte[] data, Writer output, String encoding)
Writes bytes from a byte[] to chars on a Writer using the specified character encoding.
voidwrite(char[] data, OutputStream output, String encoding)
Writes chars from a char[] to bytes on an OutputStream using the specified character encoding.
voidwrite(String data, OutputStream output, String encoding)
Writes chars from a String to bytes on an OutputStream using the specified character encoding.
voidwrite(StringBuffer data, OutputStream output, String encoding)
Writes chars from a StringBuffer to bytes on an OutputStream using the specified character encoding.
voidwriteLines(Collection lines, String lineEnding, OutputStream output)
Writes the toString() value of each item in a collection to an OutputStream line by line, using the default character encoding of the platform and the specified line ending.
voidwriteLines(Collection lines, String lineEnding, Writer writer)
Writes the toString() value of each item in a collection to a Writer line by line, using the specified line ending.
voidwriteLines(Collection lines, String lineEnding, OutputStream output, String encoding)
Writes the toString() value of each item in a collection to an OutputStream line by line, using the specified character encoding and the specified line ending.