Skip navigation links
A B C D F G I L M O P R S T W 

A

AbstractTickSource - Class in at.borkowski.spicej.impl
An abstract tick source keeping track of its listeners.
AbstractTickSource() - Constructor for class at.borkowski.spicej.impl.AbstractTickSource
 
addDelay(InputStream, TickSource, long, int) - Static method in class at.borkowski.spicej.Streams
Creates a delayed InputStream.
addListener(TickListener) - Method in class at.borkowski.spicej.impl.AbstractTickSource
 
addListener(TickListener) - Method in interface at.borkowski.spicej.ticks.TickSource
Adds a listener to fire tick events to.
advance() - Method in class at.borkowski.spicej.impl.SimulationTickSource
Generates a tick and advances the tick counter by 1.
at.borkowski.spicej - package at.borkowski.spicej
 
at.borkowski.spicej.impl - package at.borkowski.spicej.impl
 
at.borkowski.spicej.shapers - package at.borkowski.spicej.shapers
 
at.borkowski.spicej.streams - package at.borkowski.spicej.streams
 
at.borkowski.spicej.streams.util - package at.borkowski.spicej.streams.util
 
at.borkowski.spicej.ticks - package at.borkowski.spicej.ticks
 
available() - Method in class at.borkowski.spicej.streams.DelayedInputStream
 
available() - Method in class at.borkowski.spicej.streams.RateLimitInputStream
This method complies with InputStream.available() and imposes stronger postconditions.
available() - Method in class at.borkowski.spicej.streams.util.PipedInputStream
 

B

buffer - Variable in class at.borkowski.spicej.streams.util.PipedInputStream
 
BUSY_WAITING_THRESHOLD - Static variable in class at.borkowski.spicej.impl.RealTimeTickSource
The threshold below which busy waiting is employed.

C

close() - Method in class at.borkowski.spicej.streams.DelayedInputStream
 
close() - Method in class at.borkowski.spicej.streams.DelayedOutputStream
 
close() - Method in class at.borkowski.spicej.streams.RateLimitInputStream
 
close() - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
 
close() - Method in class at.borkowski.spicej.streams.util.PipedInputStream
 
close() - Method in class at.borkowski.spicej.streams.util.PipedOutputStream
 
connect(PipedOutputStream) - Method in class at.borkowski.spicej.streams.util.PipedInputStream
 
connect(PipedInputStream) - Method in class at.borkowski.spicej.streams.util.PipedOutputStream
 

D

DelayedInputStream - Class in at.borkowski.spicej.streams
Provides an InputStream instance with a delay real the transferred bytes.
DelayedInputStream(TickSource, InputStream, long, int) - Constructor for class at.borkowski.spicej.streams.DelayedInputStream
Constructs a new DelayedInputStream with the given parameters.
DelayedOutputStream - Class in at.borkowski.spicej.streams
Provides an OutputStream instance with a delay real the transferred bytes.
DelayedOutputStream(TickSource, OutputStream, long, int) - Constructor for class at.borkowski.spicej.streams.DelayedOutputStream
Constructs a new DelayedOutputStream with the given parameters.
DelayShaper - Interface in at.borkowski.spicej.shapers
An interface for delay shapers.
doTick() - Method in class at.borkowski.spicej.impl.AbstractTickSource
Distributes a tick event to its listeners.

F

flush() - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
 
flush() - Method in class at.borkowski.spicej.streams.util.PipedOutputStream
 

G

getBaseStream() - Method in class at.borkowski.spicej.streams.DelayedInputStream
Returns the underlying InputStream.
getBaseStream() - Method in class at.borkowski.spicej.streams.DelayedOutputStream
Returns the underlying InputStream.
getBaseStream() - Method in class at.borkowski.spicej.streams.RateLimitInputStream
Returns the underlying InputStream.
getBaseStream() - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
Returns the underlying OutputStream.
getBufferSize() - Method in class at.borkowski.spicej.streams.DelayedInputStream
Returns the buffer size, real bytes
getBufferSize() - Method in class at.borkowski.spicej.streams.DelayedOutputStream
Returns the buffer size, real bytes
getByteRate() - Method in interface at.borkowski.spicej.shapers.RateShaper
Returns the bytes per tick (after prescaling) for this rate shaper.
getByteRate() - Method in class at.borkowski.spicej.streams.RateLimitInputStream
 
getByteRate() - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
 
getCurrentTick() - Method in class at.borkowski.spicej.impl.AbstractTickSource
 
getCurrentTick() - Method in interface at.borkowski.spicej.ticks.TickSource
Returns the current tick.
getDelay() - Method in interface at.borkowski.spicej.shapers.DelayShaper
Returns the current delay in ticks.
getDelay() - Method in class at.borkowski.spicej.streams.DelayedInputStream
 
getDelay() - Method in class at.borkowski.spicej.streams.DelayedOutputStream
 
getPrescale() - Method in interface at.borkowski.spicej.shapers.RateShaper
Returns the current prescale value (ie.
getPrescale() - Method in class at.borkowski.spicej.streams.RateLimitInputStream
 
getPrescale() - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
 
getTickSource() - Method in class at.borkowski.spicej.streams.DelayedInputStream
Returns the TickSource this stream uses.
getTickSource() - Method in class at.borkowski.spicej.streams.DelayedOutputStream
Returns the TickSource this stream uses.
getTickSource() - Method in class at.borkowski.spicej.streams.RateLimitInputStream
Returns the TickSource this stream uses.
getTickSource() - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
Returns the TickSource this stream uses.

I

in - Variable in class at.borkowski.spicej.streams.util.PipedInputStream
 

L

limitRate(InputStream, TickSource, int, int) - Static method in class at.borkowski.spicej.Streams
Creates a byte-rate-limited InputStream.
limitRate(OutputStream, TickSource, int, int) - Static method in class at.borkowski.spicej.Streams
Creates a byte-rate-limited OutputStream.
listeners - Variable in class at.borkowski.spicej.impl.AbstractTickSource
 

M

mark(int) - Method in class at.borkowski.spicej.streams.RateLimitInputStream
 
markSupported() - Method in class at.borkowski.spicej.streams.RateLimitInputStream
 
MILLISECOND_THRESHOLD - Static variable in class at.borkowski.spicej.impl.RealTimeTickSource
The threshold above which a different implementation of the internal timer is used, which is only considering milliseconds.

O

out - Variable in class at.borkowski.spicej.streams.util.PipedInputStream
 

P

PIPE_SIZE - Static variable in class at.borkowski.spicej.streams.util.PipedInputStream
 
PipedInputStream - Class in at.borkowski.spicej.streams.util
 
PipedInputStream(PipedOutputStream) - Constructor for class at.borkowski.spicej.streams.util.PipedInputStream
 
PipedInputStream(PipedOutputStream, int) - Constructor for class at.borkowski.spicej.streams.util.PipedInputStream
 
PipedInputStream() - Constructor for class at.borkowski.spicej.streams.util.PipedInputStream
 
PipedInputStream(int) - Constructor for class at.borkowski.spicej.streams.util.PipedInputStream
 
PipedOutputStream - Class in at.borkowski.spicej.streams.util
 
PipedOutputStream(PipedInputStream) - Constructor for class at.borkowski.spicej.streams.util.PipedOutputStream
 
PipedOutputStream() - Constructor for class at.borkowski.spicej.streams.util.PipedOutputStream
 

R

RateLimitInputStream - Class in at.borkowski.spicej.streams
Provides an InputStream with a limited rate of bytes.
RateLimitInputStream(InputStream, TickSource, int, int) - Constructor for class at.borkowski.spicej.streams.RateLimitInputStream
Constructs a byte-rate-limited InputStream.
RateLimitOutputStream - Class in at.borkowski.spicej.streams
Provides an OutputStream with a limited rate of bytes.
RateLimitOutputStream(OutputStream, TickSource, int, int) - Constructor for class at.borkowski.spicej.streams.RateLimitOutputStream
Constructs a byte-rate-limited OutputStream.
RateShaper - Interface in at.borkowski.spicej.shapers
An interface for byte rate shapers.
read() - Method in class at.borkowski.spicej.streams.DelayedInputStream
 
read(byte[], int, int) - Method in class at.borkowski.spicej.streams.DelayedInputStream
 
read(byte[]) - Method in class at.borkowski.spicej.streams.DelayedInputStream
 
read() - Method in class at.borkowski.spicej.streams.RateLimitInputStream
Reads one byte from the stream.
read(byte[], int, int) - Method in class at.borkowski.spicej.streams.RateLimitInputStream
This method complies with InputStream.read(byte[], int, int) and imposes stronger postconditions.
read(byte[]) - Method in class at.borkowski.spicej.streams.RateLimitInputStream
Behaves the same as:
read() - Method in class at.borkowski.spicej.streams.util.PipedInputStream
 
read(byte[], int, int) - Method in class at.borkowski.spicej.streams.util.PipedInputStream
 
RealTimeTickSource - Class in at.borkowski.spicej.impl
A tick source bound to real time.
RealTimeTickSource(long) - Constructor for class at.borkowski.spicej.impl.RealTimeTickSource
Creates a running real time tick source with ticks generated at the given interval.
RealTimeTickSource(long, boolean) - Constructor for class at.borkowski.spicej.impl.RealTimeTickSource
Creates a tick source with ticks generated at the given interval.
receive(int) - Method in class at.borkowski.spicej.streams.util.PipedInputStream
 
removeListener(TickListener) - Method in class at.borkowski.spicej.impl.AbstractTickSource
 
removeListener(TickListener) - Method in class at.borkowski.spicej.impl.RealTimeTickSource
If the last tick listener has been removed from this source, it shuts itself down via RealTimeTickSource.stop(), if it's not set to keepAlive mode using RealTimeTickSource.setKeepAlive(boolean).
removeListener(TickListener) - Method in interface at.borkowski.spicej.ticks.TickSource
Removes a tick listener.
reset() - Method in class at.borkowski.spicej.impl.AbstractTickSource
 
reset() - Method in class at.borkowski.spicej.impl.RealTimeTickSource
 
reset() - Method in class at.borkowski.spicej.streams.RateLimitInputStream
 
reset() - Method in interface at.borkowski.spicej.ticks.TickSource
Resets the tick source to its initial state.
run() - Method in class at.borkowski.spicej.streams.DelayedInputStream
 

S

setBoring(boolean) - Method in class at.borkowski.spicej.streams.RateLimitInputStream
Sets the boring flag.
setByteRate(int) - Method in interface at.borkowski.spicej.shapers.RateShaper
Sets a new byte rate per tick (after prescaling) for this rate shaper.
setByteRate(int) - Method in class at.borkowski.spicej.streams.RateLimitInputStream
 
setByteRate(int) - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
 
setDelay(long) - Method in interface at.borkowski.spicej.shapers.DelayShaper
Sets a new delay in ticks.
setDelay(long) - Method in class at.borkowski.spicej.streams.DelayedInputStream
 
setDelay(long) - Method in class at.borkowski.spicej.streams.DelayedOutputStream
 
setEofDetection(boolean) - Method in class at.borkowski.spicej.streams.DelayedInputStream
Sets whether this DelayedInputStream should employ EOF detection.
setKeepAlive(boolean) - Method in class at.borkowski.spicej.impl.RealTimeTickSource
Sets the keepAlive mode of this tick source.
setNonBlocking(boolean) - Method in class at.borkowski.spicej.streams.DelayedInputStream
Sets the non-blocking flag.
setNonBlocking(boolean) - Method in class at.borkowski.spicej.streams.RateLimitInputStream
Sets the non-blocking flag.
setNonBlocking(boolean) - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
Sets the non-blocking flag.
setPrescale(int) - Method in interface at.borkowski.spicej.shapers.RateShaper
Sets a new prescale value (ie.
setPrescale(int) - Method in class at.borkowski.spicej.streams.RateLimitInputStream
 
setPrescale(int) - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
 
SimulationTickSource - Class in at.borkowski.spicej.impl
A tick source controlled by a simulation, with tick events sent out on demand.
SimulationTickSource() - Constructor for class at.borkowski.spicej.impl.SimulationTickSource
 
sleep() - Method in class at.borkowski.spicej.impl.SleepWakeup
Blocks the calling thread until another thread calls this object's SleepWakeup.wakeup() or a certain timeout passes.
sleep(int) - Static method in class at.borkowski.spicej.impl.SleepWakeup
Sleeps for the provided amount of milliseconds, ignoring thread interrupts.
SleepWakeup - Class in at.borkowski.spicej.impl
Provides helper methods for sleeping and waking sleepers up.
SleepWakeup() - Constructor for class at.borkowski.spicej.impl.SleepWakeup
 
start() - Method in class at.borkowski.spicej.impl.RealTimeTickSource
Starts generating tick events, starting from 0.
stop() - Method in class at.borkowski.spicej.impl.RealTimeTickSource
Stops generating tick events.
Streams - Class in at.borkowski.spicej
Provides helper functions for easy shaping of streams.

T

tick(long) - Method in class at.borkowski.spicej.streams.DelayedInputStream
 
tick(long) - Method in class at.borkowski.spicej.streams.DelayedOutputStream
 
tick(long) - Method in interface at.borkowski.spicej.ticks.TickListener
Called when a tick event is fired.
TickListener - Interface in at.borkowski.spicej.ticks
An interface for listening to (receiving) tick events.
TickSource - Interface in at.borkowski.spicej.ticks
An interface for tick sources, ie.

W

wakeup() - Method in class at.borkowski.spicej.impl.SleepWakeup
Wakes up all sleeping threads currently in SleepWakeup.sleep().
WouldBlockException - Exception in at.borkowski.spicej
Thrown when an operation of an InputStream or OutputStream that is in non-blocking mode would block.
WouldBlockException() - Constructor for exception at.borkowski.spicej.WouldBlockException
 
write(int) - Method in class at.borkowski.spicej.streams.DelayedOutputStream
 
write(byte[], int, int) - Method in class at.borkowski.spicej.streams.DelayedOutputStream
 
write(byte[]) - Method in class at.borkowski.spicej.streams.DelayedOutputStream
 
write(int) - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
 
write(byte[], int, int) - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
 
write(byte[]) - Method in class at.borkowski.spicej.streams.RateLimitOutputStream
 
write(int) - Method in class at.borkowski.spicej.streams.util.PipedOutputStream
 
write(byte[], int, int) - Method in class at.borkowski.spicej.streams.util.PipedOutputStream
 
A B C D F G I L M O P R S T W 
Skip navigation links

Copyright © 2015. All rights reserved.