| Package | Description |
|---|---|
| org.marketcetera.util.file |
Miscellaneous utilities for file management.
|
| org.marketcetera.util.unicode |
Unicode en/decoding with BOMs, including I/O stream support.
|
| Modifier and Type | Method and Description |
|---|---|
static char[] |
CopyCharsUnicodeUtils.copy(String name,
DecodingStrategy decodingStrategy)
Copies the character stream at the given location (and
interpreted using the given strategy) into memory, returning a
character array.
|
static long |
CopyCharsUnicodeUtils.copy(String in,
DecodingStrategy decodingStrategy,
String out)
Copies a character stream from one given location (and
interpreted using the given strategy) to another, attempting to
retain signature/charset information.
|
static long |
CopyCharsUnicodeUtils.copy(String in,
DecodingStrategy decodingStrategy,
Writer out,
boolean skipClose)
Copies a character stream from the given location (and
interpreted using the given strategy) to the given sink.
|
| Constructor and Description |
|---|
ReaderWrapper(File file,
DecodingStrategy decodingStrategy)
Creates a new wrapped reader that wraps the given regular
file.
|
ReaderWrapper(String name,
DecodingStrategy decodingStrategy)
Creates a new wrapped reader that wraps the regular file with
the given name, or the standard input stream (if the name is
SpecialNames.STANDARD_INPUT). |
| Modifier and Type | Method and Description |
|---|---|
DecodingStrategy |
UnicodeInputStreamReader.getDecodingStrategy()
Returns the receiver's decoding strategy.
|
static DecodingStrategy |
DecodingStrategy.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DecodingStrategy[] |
DecodingStrategy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
UnicodeFileReader(File file,
DecodingStrategy decodingStrategy)
Creates a new reader using the given file and decoding
strategy, and the
UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream,
DecodingStrategy) and FileInputStream.FileInputStream(File) constructors. |
UnicodeFileReader(FileDescriptor fd,
DecodingStrategy decodingStrategy)
Creates a new reader using the given file descriptor and
decoding strategy, the
UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream,
DecodingStrategy) and FileInputStream.FileInputStream(FileDescriptor) constructors. |
UnicodeFileReader(String fileName,
DecodingStrategy decodingStrategy)
Creates a new reader using the given file name and decoding
strategy, and the
UnicodeInputStreamReader.UnicodeInputStreamReader(InputStream,
DecodingStrategy) and FileInputStream.FileInputStream(String) constructors. |
UnicodeInputStreamReader(InputStream stream,
DecodingStrategy decodingStrategy)
Creates a new reader over the given stream that normally uses
the charset associated with a matching signature among those
of the given decoding strategy.
|
Copyright © 2015. All Rights Reserved.