Package org.apache.commons.csv
Class IOUtils
java.lang.Object
org.apache.commons.csv.IOUtils
Copied from Apache Commons IO.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intCopied from Apache Commons IO.private static final intCopied from Apache Commons IO. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static longcopy(Reader input, Appendable output) Copies chars from a large (over 2GB)Readerto anAppendable.(package private) static longcopy(Reader input, Appendable output, CharBuffer buffer) Copies chars from a large (over 2GB)Readerto anAppendable.(package private) static longCopied from Apache Commons IO.(package private) static longCopied from Apache Commons IO.
-
Field Details
-
DEFAULT_BUFFER_SIZE
static final int DEFAULT_BUFFER_SIZECopied from Apache Commons IO.
The default buffer size (4096).- See Also:
-
EOF
private static final int EOFCopied from Apache Commons IO.
Represents the end-of-file (or stream).- Since:
- 2.5 (made public)
- See Also:
-
-
Constructor Details
-
IOUtils
IOUtils()
-
-
Method Details
-
copy
Copies chars from a large (over 2GB)Readerto anAppendable.This method buffers the input internally, so there is no need to use a
The buffer size is given byBufferedReader.DEFAULT_BUFFER_SIZE.- Parameters:
input- theReaderto read fromoutput- theAppendableto append to- Returns:
- the number of characters copied
- Throws:
NullPointerException- if the input or output is nullIOException- if an I/O error occurs- Since:
- 2.7
-
copy
Copies chars from a large (over 2GB)Readerto anAppendable.This method uses the provided buffer, so there is no need to use a
BufferedReader.- Parameters:
input- theReaderto read fromoutput- theAppendableto write tobuffer- the buffer to be used for the copy- Returns:
- the number of characters copied
- Throws:
NullPointerException- if the input or output is nullIOException- if an I/O error occurs- Since:
- 2.7
-
copyLarge
Copied from Apache Commons IO.
Copies chars from a large (over 2GB)Readerto aWriter.This method buffers the input internally, so there is no need to use a
BufferedReader.The buffer size is given by
DEFAULT_BUFFER_SIZE.- Parameters:
input- theReaderto read fromoutput- theWriterto write to- Returns:
- the number of characters copied
- Throws:
NullPointerException- if the input or output is nullIOException- if an I/O error occurs- Since:
- 1.3
-
copyLarge
Copied from Apache Commons IO.
Copies chars from a large (over 2GB)Readerto aWriter.This method uses the provided buffer, so there is no need to use a
BufferedReader.- Parameters:
input- theReaderto read fromoutput- theWriterto write tobuffer- the buffer to be used for the copy- Returns:
- the number of characters copied
- Throws:
NullPointerException- if the input or output is nullIOException- if an I/O error occurs- Since:
- 2.2
-