Package | Description |
---|---|
bayou.bytes |
Async byte source/sink.
|
bayou.file |
Utilities for files.
|
bayou.gzip |
GZIP related utils.
|
bayou.http |
Http server.
|
bayou.mime |
MIME related utilities.
|
bayou.text |
Utilities for texts.
|
bayou.websocket |
WebSocket server.
|
Modifier and Type | Class and Description |
---|---|
class |
InputStream2ByteSource
Converts an InputStream to a ByteSource.
|
class |
PushbackByteSource
A ByteSource wrapper that supports unread().
|
class |
RangedByteSource
A sub-range [min, max) of an origin source.
|
class |
SimpleByteSource
A simple ByteSource based on some ByteBuffers.
|
class |
ThreadSafeByteSource
A thread-safe wrapper of a ByteSource; supporting arbitrary close().
|
class |
ThrottledByteSource
Throttles a ByteSource to limit how fast bytes can be served.
|
Modifier and Type | Method and Description |
---|---|
ByteSource |
ByteSourceCache.newView()
Create a ByteSource view of the cached bytes.
|
ByteSource |
BytePipe.source()
Get the source of this pipe.
|
Constructor and Description |
---|
ByteSource2InputStream(ByteSource origin,
Duration readTimeout)
Create an InputStream based on the ByteSource.
|
ByteSourceCache(ByteSource origin,
Long totalBytes)
Create an in-memory cache of the origin source.
|
PushbackByteSource(ByteSource origin)
Create a PushbackByteSource wrapper of the `origin` ByteSource.
|
RangedByteSource(ByteSource origin,
long min,
long max)
Create a sub-range [min, max) of the origin source.
|
ThreadSafeByteSource(ByteSource origin)
Creates a thread-safe wrapper of the `origin` ByteSource.
|
ThrottledByteSource(ByteSource origin,
int bufferSize,
long b0,
long bytesPerSecond)
Create a throttled wrapper of the origin source, with a linear curve.
|
ThrottledByteSource(ByteSource origin,
int bufferSize,
ThrottledByteSource.Curve curve)
Create a throttled wrapper of the origin source.
|
Modifier and Type | Class and Description |
---|---|
class |
FileByteSource
A source of bytes from a file.
|
Modifier and Type | Method and Description |
---|---|
ByteSource |
FileHttpEntity.body()
The body of the entity, same as the content of the file.
|
Modifier and Type | Class and Description |
---|---|
class |
GunzipByteSource
Decompress the origin ByteSource that's compressed in gzip format.
|
class |
GzipByteSource
Compresses the origin ByteSource with gzip.
|
Modifier and Type | Method and Description |
---|---|
ByteSource |
GzipHttpEntity.body()
The body after compression.
|
Constructor and Description |
---|
GunzipByteSource(ByteSource origin)
Create a GunzipByteSource that decompresses the `origin` source in gzip format.
|
GzipByteSource(ByteSource origin,
int compressionLevel)
Create a GzipByteSource, which compresses the origin source with gzip.
|
Modifier and Type | Method and Description |
---|---|
ByteSource |
ThrottledHttpEntity.body()
The entity body.
|
ByteSource |
SimpleHttpEntity.body()
The body of this entity.
|
default ByteSource |
HttpEntityWrapper.body()
Equivalent to
getOriginEntity().body() by default. |
ByteSource |
HttpEntity.body()
The body of this entity.
|
ByteSource |
CachedHttpEntity.body()
The entity body.
|
Modifier and Type | Class and Description |
---|---|
class |
MultipartByteSource
Generates a multipart body.
|
Modifier and Type | Method and Description |
---|---|
ByteSource |
MultipartPart.body()
The body of this part.
|
Constructor and Description |
---|
MultipartParser(ByteSource origin,
CharSequence boundary)
Create a MultipartParser.
|
Modifier and Type | Class and Description |
---|---|
class |
TextByteSource
A ByteSource encoding texts to bytes.
|
Modifier and Type | Method and Description |
---|---|
ByteSource |
TextHttpEntity.body()
The entity body.
|
Modifier and Type | Interface and Description |
---|---|
interface |
WebSocketMessage
WebSocket message.
|
Modifier and Type | Method and Description |
---|---|
static WebSocketMessage |
WebSocketMessage.binary(ByteSource byteSource)
Wrap a ByteSource as a binary message.
|
static WebSocketMessage |
WebSocketMessage.text(ByteSource byteSource)
Wrap a ByteSource as a text message.
|