Namespace class that contains the definitions of a content source,
a content sink and a content chunk.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | Content.Chunk
A chunk of content indicating whether it is the last chunk. |
| public static interface | Content.Sink
A content sink that writes the content to its implementation (a socket, a file, etc.). |
| public static interface | Content.Source
A source of content that can be read with a read/demand model. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | copy(Content.
the source to copy from source,the sink to copy to sink,a (possibly chunkProcessor,null) predicate to handle the current chunk and its callbackthe callback to notify when the copy is complete callback)Copies the given content source to the given content sink, notifying the given callback when the copy is complete. |