| Package | Description |
|---|---|
| at.borkowski.spicej | |
| at.borkowski.spicej.impl | |
| at.borkowski.spicej.streams |
| Modifier and Type | Method and Description |
|---|---|
static DelayedInputStream |
Streams.addDelay(InputStream base,
TickSource tickSource,
long delay,
int bufferSize)
Creates a delayed
InputStream. |
static RateLimitInputStream |
Streams.limitRate(InputStream base,
TickSource tickSource,
int bytesPerTick,
int prescale)
Creates a byte-rate-limited
InputStream. |
static RateLimitOutputStream |
Streams.limitRate(OutputStream base,
TickSource tickSource,
int bytesPerTick,
int prescaler)
Creates a byte-rate-limited
OutputStream. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTickSource
An abstract tick source keeping track of its listeners.
|
class |
SimulationTickSource
A tick source controlled by a simulation, with tick events sent out on
demand.
|
| Modifier and Type | Method and Description |
|---|---|
TickSource |
DelayedInputStream.getTickSource()
Returns the
TickSource this stream uses. |
TickSource |
DelayedOutputStream.getTickSource()
Returns the
TickSource this stream uses. |
TickSource |
RateLimitInputStream.getTickSource()
Returns the
TickSource this stream uses. |
TickSource |
RateLimitOutputStream.getTickSource()
Returns the
TickSource this stream uses. |
| Constructor and Description |
|---|
DelayedInputStream(TickSource t,
InputStream real,
long delay,
int bufferSize)
Constructs a new
DelayedInputStream with the given parameters. |
DelayedOutputStream(TickSource t,
OutputStream real,
long delay,
int bufferSize)
Constructs a new
DelayedOutputStream with the given parameters. |
RateLimitInputStream(InputStream real,
TickSource tickSource,
int byteRate,
int prescale)
Constructs a byte-rate-limited
InputStream. |
RateLimitOutputStream(OutputStream real,
TickSource tickSource,
int byteRate,
int prescale)
Constructs a byte-rate-limited
OutputStream. |
Copyright © 2015. All rights reserved.