| Modifier and Type | Class and Description |
|---|---|
static class |
CharsetHelper.InputStreamAndCharset |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IHasInputStreamAndReader
A callback interface to retrieve
Reader objects based on
InputStreams. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IReadableResource
Base interface for an abstract readable resource.
|
interface |
IReadWriteResource
Base interface for an abstract resource that is both readable and writable.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ClassPathResource
Wraps a class path object as a readable resource.
|
class |
FileSystemResource
Implementation of the
IReadableResource and
IWritableResource interfaces for file
system objects. |
class |
URLResource
Implementation of the
IReadableResource interface for URL objects. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IMemoryReadableResource
Marker interface for readable resources that are "in-memory" only.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMemoryReadableResource
Abstract base class for an
IReadableResource that is not really a
resource but where the API does not offer alternatives. |
class |
ReadableResourceByteArray
An in-memory
IReadableResource based on a byte array. |
class |
ReadableResourceInputStream
An in-memory
IReadableResource based on an InputStream. |
class |
ReadableResourceString
An in-memory
IReadableResource based on a String which is
converted to a byte array with the provided charset. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IWrappedReadableResource
Interface for readable resources that are "wrapped".
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractWrappedReadableResource
A wrapper around a readable resource for
InputStream manipulation . |
class |
GZIPReadableResource
A readable resource that is GZIP compressed.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HasInputStream
Special implementation of
IHasInputStream with that has an
InputStream supplier that can be read more than once! |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
StreamHelper.getAllBytes(IHasInputStream aISP)
Read all bytes from the passed input stream into a byte array.
|
static String |
StreamHelper.getAllBytesAsString(IHasInputStream aISP,
Charset aCharset)
Read all bytes from the passed input stream into a string.
|
static ICommonsList<String> |
StreamHelper.readStreamLines(IHasInputStream aISP,
Charset aCharset)
Get the content of the passed Spring resource as one big string in the
passed character set.
|
static ICommonsList<String> |
StreamHelper.readStreamLines(IHasInputStream aISP,
Charset aCharset,
int nLinesToSkip,
int nLinesToRead)
Get the content of the passed Spring resource as one big string in the
passed character set.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ByteArrayInputStreamProvider
An
InputStream provider based on a byte array. |
class |
ByteBufferInputStreamProvider
An
InputStream provider based on a
ByteBuffer. |
class |
StringInputStreamProvider
An
InputStream provider based on a String. |
Copyright © 2014–2017 Philip Helger. All rights reserved.