A B C D E F G H I K L M N O P R S T U V W

A

accept(Object) - Method in class com.onionnetworks.util.FilteringIterator
Fill in this method with a test that will be applied to each object which is a candidate for passing through the filter.
acquireAllWriteLocks() - Method in class com.onionnetworks.fec.io.FECFile
Acquires all write block locks.
add(int) - Method in class com.onionnetworks.util.RangeSet
Add a single integer to this set.
add(int, int) - Method in class com.onionnetworks.util.RangeSet
Add a range to the set.
add(Range) - Method in class com.onionnetworks.util.RangeSet
Add this range to the set.
addAll(RangeSet) - Method in class com.onionnetworks.util.RangeSet
Add all of the passed set's elements to this set.
addFECIOListener(FECIOListener) - Method in class com.onionnetworks.fec.io.FECFile
Adds a new FECIOListener.
addListener(EventListener, String) - Method in class com.onionnetworks.util.ReflectiveEventDispatcher
 
addListener(EventListener, String[]) - Method in class com.onionnetworks.util.ReflectiveEventDispatcher
 
addMul(byte[], int, byte[], int, byte, int) - Method in class com.onionnetworks.fec.FECMath
 
addMul(char[], int, char[], int, char, int) - Method in class com.onionnetworks.fec.FECMath
 
addPacketEntry(int, int) - Method in class com.onionnetworks.fec.io.PacketPlacement
Add a new entry to an available slot.
arraycopy(byte[], int, char[], int, int) - Static method in class com.onionnetworks.util.Util
 
arraycopy(char[], int, byte[], int, int) - Static method in class com.onionnetworks.util.Util
 
arraysEqual(byte[], int, byte[], int, int) - Static method in class com.onionnetworks.util.Util
 
arraysEqual(char[], int, char[], int, int) - Static method in class com.onionnetworks.util.Util
 
arraysEqual(int[], int, int[], int, int) - Static method in class com.onionnetworks.util.Util
 
AsyncPersistentProps - class com.onionnetworks.util.AsyncPersistentProps.
 
AsyncPersistentProps(File) - Constructor for class com.onionnetworks.util.AsyncPersistentProps
Reads in the properties from the file if it exists.

B

b - Variable in class com.onionnetworks.util.Buffer
 
BlockAlreadyDecodedException - exception com.onionnetworks.fec.io.BlockAlreadyDecodedException.
This exception signals that there was an attempt to write a packet to a block that has already been decoded.
BlockAlreadyDecodedException(int, int) - Constructor for class com.onionnetworks.fec.io.BlockAlreadyDecodedException
Constructs a new Exception
BlockAlreadyDecodedException(String, int, int) - Constructor for class com.onionnetworks.fec.io.BlockAlreadyDecodedException
Constructs a new Exception
BlockDecodedEvent - class com.onionnetworks.fec.io.BlockDecodedEvent.
This event signifies that a complete block was decoded.
BlockDecodedEvent(Object, int) - Constructor for class com.onionnetworks.fec.io.BlockDecodedEvent
 
BlockDigestInputStream - class com.onionnetworks.util.BlockDigestInputStream.
 
BlockDigestInputStream(InputStream, String, int) - Constructor for class com.onionnetworks.util.BlockDigestInputStream
 
blockSize - Variable in class com.onionnetworks.util.BlockDigestInputStream
 
Buffer - class com.onionnetworks.util.Buffer.
A class (struct) for holding the offset and length of a byte[] buffer
Buffer(byte[]) - Constructor for class com.onionnetworks.util.Buffer
 
Buffer(byte[], int, int) - Constructor for class com.onionnetworks.util.Buffer
 
Buffer(int) - Constructor for class com.onionnetworks.util.Buffer
 
byteCount - Variable in class com.onionnetworks.util.BlockDigestInputStream
 
bytesToHex(Buffer) - Static method in class com.onionnetworks.util.Util
 
bytesToHex(byte[]) - Static method in class com.onionnetworks.util.Util
 
bytesToHex(byte[], int, int) - Static method in class com.onionnetworks.util.Util
Turn a byte array into a lowercase hex string
bzero(byte[], int, int) - Static method in class com.onionnetworks.util.Util
Fills in a range of an array with 0's.
bzero(char[], int, int) - Static method in class com.onionnetworks.util.Util
Fills in a range of an array with 0's.

C

checkTimings() - Method in class com.onionnetworks.util.TimedSoftHashMap
 
clear() - Method in class com.onionnetworks.util.AsyncPersistentProps
 
clone() - Method in class com.onionnetworks.util.TimedSoftHashMap
 
clone() - Method in class com.onionnetworks.util.RangeSet
 
close() - Method in class com.onionnetworks.util.BlockDigestInputStream
 
close() - Method in class com.onionnetworks.util.AsyncPersistentProps
 
close() - Method in class com.onionnetworks.util.ReflectiveEventDispatcher
 
close() - Method in class com.onionnetworks.fec.io.FECFile
Close the underlying file descriptor and free up the resources associated with this FECFile.
close() - Method in class com.onionnetworks.fec.io.FECFile.Decoder
 
close() - Method in class com.onionnetworks.fec.io.RAF
 
com.onionnetworks.fec - package com.onionnetworks.fec
 
com.onionnetworks.fec.io - package com.onionnetworks.fec.io
 
com.onionnetworks.util - package com.onionnetworks.util
 
compareTo(Object) - Method in class com.onionnetworks.util.TimedSoftHashMap.HashableSoftReference
 
complement() - Method in class com.onionnetworks.util.RangeSet
 
contains(int) - Method in class com.onionnetworks.util.RangeSet
 
contains(int) - Method in class com.onionnetworks.util.Range
 
contains(Range) - Method in class com.onionnetworks.util.Range
 
containsPacket(int, int) - Method in class com.onionnetworks.fec.io.FECFile
 
containsValue(Object) - Method in class com.onionnetworks.util.TimedSoftHashMap
 
copyShuffle(Buffer[], int[], int) - Static method in class com.onionnetworks.fec.FECCode
Move packets with index < k into their position.
createBuffer() - Method in class com.onionnetworks.fec.io.FECFile
 
createBuffer(int) - Static method in class com.onionnetworks.fec.io.FECFile
 
createDecodeMatrix(char[], int[], int, int) - Method in class com.onionnetworks.fec.FECMath
createDecodeMatrix constructs the encoding matrix given the indexes.
createEncodeMatrix(int, int) - Method in class com.onionnetworks.fec.FECMath
 
createFECCode(int, int) - Method in class com.onionnetworks.fec.FECCodeFactory
 
createFECCode(int, int) - Method in class com.onionnetworks.fec.DefaultFECCodeFactory
If you're only asking for an 8 bit code we will NOT give you a 16 bit one.
createFrom(IntIterator) - Static method in class com.onionnetworks.util.RangeSet
 
createGFMatrix(int, int) - Static method in class com.onionnetworks.fec.FECMath
Generate GF(2**m) from the irreducible polynomial p(X) in p[0]..p[m] Lookup tables: index->polynomial form gf_exp[] contains j= \alpha^i; polynomial form -> index form gf_log[ j = \alpha^i ] = i \alpha=x is the primitive element of GF(2^m) For efficiency, gf_exp[] has size 2*gfSize, so that a simple multiplication of two numbers can be resolved without calling modnn
createIntIterator(Iterator) - Static method in class com.onionnetworks.util.Util
Creates an IntIterator from an Iterator containing Integer objects.
currentIntervalEvents - Variable in class com.onionnetworks.util.RateCalculator
 

D

deathTime - Variable in class com.onionnetworks.util.TimedSoftHashMap.HashableSoftReference
 
decode(Buffer[], int[]) - Method in class com.onionnetworks.fec.FECCode
This method takes an array of encoded packets and decodes them.
decode(byte[][], int[], int[], int, boolean) - Method in class com.onionnetworks.fec.FECCode
This method takes an array of encoded packets and decodes them.
decode(byte[][], int[], int[], int, boolean) - Method in class com.onionnetworks.fec.Native8Code
 
decode(byte[][], int[], int[], int, boolean) - Method in class com.onionnetworks.fec.Native16Code
 
decode(byte[][], int[], int[], int, boolean) - Method in class com.onionnetworks.fec.PureCode
 
decode(byte[][], int[], int[], int, boolean) - Method in class com.onionnetworks.fec.Pure16Code
 
decode(char[][], int[], int[], int) - Method in class com.onionnetworks.fec.Pure16Code
 
DECODED_BLOCK - Static variable in class com.onionnetworks.fec.io.PacketPlacement
 
def - Static variable in class com.onionnetworks.fec.FECCodeFactory
 
DEFAULT_CACHE_TIME - Static variable in class com.onionnetworks.fec.DefaultFECCodeFactory
 
DEFAULT_CAPACITY - Static variable in class com.onionnetworks.util.RangeSet
 
DEFAULT_HISTORY_SIZE - Static variable in class com.onionnetworks.util.RateCalculator
 
DEFAULT_HISTORY_WEIGHT - Static variable in class com.onionnetworks.util.RateCalculator
 
DEFAULT_INTERVAL_LENGTH - Static variable in class com.onionnetworks.util.RateCalculator
 
DEFAULT_TTL - Static variable in class com.onionnetworks.util.TimedSoftHashMap
 
DEFAULT_WARNING_TIME - Static variable in class com.onionnetworks.util.ReflectiveEventDispatcher
 
DefaultFECCodeFactory - class com.onionnetworks.fec.DefaultFECCodeFactory.
This is the default FECCodeFactory that wraps all of the FECCode implementations.
DefaultFECCodeFactory() - Constructor for class com.onionnetworks.fec.DefaultFECCodeFactory
 
divideCeil(int, int) - Static method in class com.onionnetworks.util.Util
Divides and rounds up on remainder
divideCeil(long, long) - Static method in class com.onionnetworks.util.Util
 
DuplicatePacketException - exception com.onionnetworks.fec.io.DuplicatePacketException.
This exception signifies that there was attempt to write a duplicate packet (c) Copyright 2001 Onion Networks (c) Copyright 2000 OpenCola
DuplicatePacketException(int, int, int) - Constructor for class com.onionnetworks.fec.io.DuplicatePacketException
 
DuplicatePacketException(String, int, int, int) - Constructor for class com.onionnetworks.fec.io.DuplicatePacketException
 

E

eightBitCodes - Variable in class com.onionnetworks.fec.DefaultFECCodeFactory
 
encMatrix - Variable in class com.onionnetworks.fec.PureCode
 
encode(Buffer[], Buffer[], int[]) - Method in class com.onionnetworks.fec.FECCode
This method takes an array of source packets and generates a number of repair packets from them.
encode(byte[][], int[], byte[][], int[], int[], int) - Method in class com.onionnetworks.fec.FECCode
This method takes an array of source packets and generates a number of repair packets from them.
encode(byte[][], int[], byte[][], int[], int[], int) - Method in class com.onionnetworks.fec.Native8Code
 
encode(byte[][], int[], byte[][], int[], int[], int) - Method in class com.onionnetworks.fec.Native16Code
 
encode(byte[][], int[], byte[][], int[], int[], int) - Method in class com.onionnetworks.fec.PureCode
encode accepts as input pointers to n data packets of size sz, and produces as output a packet pointed to by fec, computed with index "index".
encode(byte[][], int[], byte[][], int[], int[], int) - Method in class com.onionnetworks.fec.Pure16Code
encode accepts as input pointers to n data packets of size sz, and produces as output a packet pointed to by fec, computed with index "index".
encode(byte[][], int[], byte[], int, int, int) - Method in class com.onionnetworks.fec.PureCode
 
encode(char[][], int[], char[], int, int, int) - Method in class com.onionnetworks.fec.Pure16Code
ASSERT: index >= k && index < n
entrySet() - Method in class com.onionnetworks.util.TimedSoftHashMap
 
equals(Object) - Method in class com.onionnetworks.util.TimedSoftHashMap.HashableSoftReference
 
equals(Object) - Method in class com.onionnetworks.util.RangeSet
 
equals(Object) - Method in class com.onionnetworks.util.Tuple
 
equals(Object) - Method in class com.onionnetworks.util.Buffer
If two buffers are the same length and contain the same data, then this method will return true, otherwise false.
equals(Object) - Method in class com.onionnetworks.util.Range
 
equals(Object) - Method in class com.onionnetworks.fec.io.FECParameters
 
equals(Object) - Method in class com.onionnetworks.fec.io.PacketInfo
 
EVENTS - Static variable in interface com.onionnetworks.fec.io.FECIOListener
 
exceptionHandler - Variable in class com.onionnetworks.fec.io.FECFile
 
ExceptionHandler - interface com.onionnetworks.util.ExceptionHandler.
An interface for an Exception handler.

F

FEC_MAGIC - Static variable in class com.onionnetworks.fec.PureCode
 
FECCode - class com.onionnetworks.fec.FECCode.
This class provides the main API/SPI for the FEC library.
FECCode(int, int) - Constructor for class com.onionnetworks.fec.FECCode
Construct a new FECCode given k and n
FECCodeFactory - class com.onionnetworks.fec.FECCodeFactory.
This is the abstract class is subclassed in order to plug in new FEC implementations.
FECCodeFactory() - Constructor for class com.onionnetworks.fec.FECCodeFactory
 
FECFile - class com.onionnetworks.fec.io.FECFile.
This class provides the necessary file IO routines to go along with the raw FEC codes.
FECFile.Decoder - class com.onionnetworks.fec.io.FECFile.Decoder.
 
FECFile.Decoder(FECFile) - Constructor for class com.onionnetworks.fec.io.FECFile.Decoder
 
FECFile(File, String, FECParameters) - Constructor for class com.onionnetworks.fec.io.FECFile
Open the file according to modeFECFile(File, String, FECParameters, FileIntegrity) - Constructor for class com.onionnetworks.fec.io.FECFile
Open the file according to modeFECIOEvent - class com.onionnetworks.fec.io.FECIOEvent.
Superclass for all FEC IO related events.
FECIOEvent(Object) - Constructor for class com.onionnetworks.fec.io.FECIOEvent
 
FECIOListener - interface com.onionnetworks.fec.io.FECIOListener.
This interface is implemented to listen for FECIOEvents (c) Copyright 2001 Onion Networks (c) Copyright 2000 OpenCola
fecMath - Static variable in class com.onionnetworks.fec.PureCode
 
fecMath - Static variable in class com.onionnetworks.fec.Pure16Code
 
FECMath - class com.onionnetworks.fec.FECMath.
This class provides the majority of the logic for the pure Java implementation of the vandermonde FEC codes.
FECMath() - Constructor for class com.onionnetworks.fec.FECMath
 
FECMath(int) - Constructor for class com.onionnetworks.fec.FECMath
 
FECParameters - class com.onionnetworks.fec.io.FECParameters.
This class contains all of the functions for performing packet, block, and stripe calculations given a set of FEC parameters.
FECParameters(int, int, int, long) - Constructor for class com.onionnetworks.fec.io.FECParameters
Creates a new FECParameters instance.
fecProperties - Variable in class com.onionnetworks.fec.DefaultFECCodeFactory
 
FileAlreadyDecodedException - exception com.onionnetworks.fec.io.FileAlreadyDecodedException.
This exception signals that there was an attempt to write a packet to a file that has already been completely decoded.
FileAlreadyDecodedException() - Constructor for class com.onionnetworks.fec.io.FileAlreadyDecodedException
 
FileAlreadyDecodedException(String) - Constructor for class com.onionnetworks.fec.io.FileAlreadyDecodedException
 
FileDecodedEvent - class com.onionnetworks.fec.io.FileDecodedEvent.
This event signifies that the file has been completely decoded.
FileDecodedEvent(Object) - Constructor for class com.onionnetworks.fec.io.FileDecodedEvent
 
FileIntegrity - interface com.onionnetworks.util.FileIntegrity.
This interface provides access to a number of block hashes for a file.
FileIntegrityImpl - class com.onionnetworks.util.FileIntegrityImpl.
This class provides a way to access various structures needed to check the integrity of a file.
FileIntegrityImpl(String, Buffer, Buffer[], long, int) - Constructor for class com.onionnetworks.util.FileIntegrityImpl
 
fileSize - Variable in class com.onionnetworks.fec.io.FECParameters
 
FilteringIterator - class com.onionnetworks.util.FilteringIterator.
FilteredIterators wrap Iterators and return only elements that pass a provided test.
FilteringIterator(Iterator) - Constructor for class com.onionnetworks.util.FilteringIterator
Create a FilteringIterator and provide the parent Iterator
finalize() - Method in class com.onionnetworks.fec.Native8Code
 
finalize() - Method in class com.onionnetworks.fec.Native16Code
 
finish() - Method in class com.onionnetworks.util.BlockDigestInputStream
 
fire(EventObject, String) - Method in class com.onionnetworks.util.ReflectiveEventDispatcher
 
fire(FECIOEvent) - Method in class com.onionnetworks.fec.io.FECFile
Fire an event.
firstGapStripe - Variable in class com.onionnetworks.fec.io.FECParameters
 
flush() - Method in class com.onionnetworks.util.AsyncPersistentProps
 

G

generateGF() - Method in class com.onionnetworks.fec.FECMath
 
get(Object) - Method in class com.onionnetworks.util.TimedSoftHashMap
We renew the timer every time get() is called.
getAlgorithm() - Method in class com.onionnetworks.util.FileIntegrityImpl
 
getAlgorithm() - Method in interface com.onionnetworks.util.FileIntegrity
 
getBlockCount() - Method in class com.onionnetworks.util.FileIntegrityImpl
Returns the number of blocks that make up the file.
getBlockCount() - Method in interface com.onionnetworks.util.FileIntegrity
Returns the number of blocks that make up the file.
getBlockCount() - Method in class com.onionnetworks.fec.io.FECParameters
 
getBlockDigests() - Method in class com.onionnetworks.util.BlockDigestInputStream
 
getBlockHash(int) - Method in class com.onionnetworks.util.FileIntegrityImpl
 
getBlockHash(int) - Method in interface com.onionnetworks.util.FileIntegrity
 
getBlockNum() - Method in class com.onionnetworks.fec.io.PacketInfo
 
getBlockNum() - Method in class com.onionnetworks.fec.io.PacketNotFoundException
 
getBlockNum() - Method in class com.onionnetworks.fec.io.PacketWrittenEvent
 
getBlockNum() - Method in class com.onionnetworks.fec.io.BlockAlreadyDecodedException
 
getBlockNum() - Method in class com.onionnetworks.fec.io.DuplicatePacketException
 
getBlockNum() - Method in class com.onionnetworks.fec.io.BlockDecodedEvent
 
getBlockPacketCount() - Method in class com.onionnetworks.fec.io.PacketWrittenEvent
 
getBlockSize() - Method in class com.onionnetworks.util.FileIntegrityImpl
Specifies the size of each block.
getBlockSize() - Method in interface com.onionnetworks.util.FileIntegrity
Specifies the size of each block.
getBytes() - Method in class com.onionnetworks.util.Buffer
Calling this defeats the purpose of reusing byte arrays, so only call this when you have to get a byte[].
getBytes(char[]) - Static method in class com.onionnetworks.util.Util
 
getBytes(int) - Static method in class com.onionnetworks.util.Util
 
getCar() - Method in class com.onionnetworks.util.Tuple
 
getCdr() - Method in class com.onionnetworks.util.Tuple
 
getChars(byte[]) - Static method in class com.onionnetworks.util.Util
 
getDecodedBlockCount() - Method in class com.onionnetworks.fec.io.PacketPlacement
 
getDecodedBlockCount() - Method in class com.onionnetworks.fec.io.FECFile
 
getDecodeExceptionHandler() - Method in class com.onionnetworks.fec.io.FECFile
 
getDefault() - Static method in class com.onionnetworks.fec.FECCodeFactory
 
getEstimatedEventCount(double) - Method in class com.onionnetworks.util.RateCalculator
 
getEstimatedEventCount(double, long) - Method in class com.onionnetworks.util.RateCalculator
 
getEstimatedTimeRemaining(double) - Method in class com.onionnetworks.util.RateCalculator
 
getEstimatedTimeRemaining(double, long) - Method in class com.onionnetworks.util.RateCalculator
 
getExpandedBlockSize() - Method in class com.onionnetworks.fec.io.FECParameters
 
getFECParameters() - Method in class com.onionnetworks.fec.io.FECFile
 
getFile() - Method in class com.onionnetworks.util.AsyncPersistentProps
 
getFileHash() - Method in class com.onionnetworks.util.FileIntegrityImpl
 
getFileHash() - Method in interface com.onionnetworks.util.FileIntegrity
 
getFileSize() - Method in class com.onionnetworks.util.FileIntegrityImpl
 
getFileSize() - Method in interface com.onionnetworks.util.FileIntegrity
 
getFileSize() - Method in class com.onionnetworks.fec.io.FECParameters
 
getHexDump(byte[]) - Static method in class com.onionnetworks.util.Util
Dumps a byte array to an UNIX style hex dump.
getInt(byte[]) - Static method in class com.onionnetworks.util.Util
 
getK() - Method in class com.onionnetworks.fec.io.FECParameters
 
getLeft() - Method in class com.onionnetworks.util.Tuple
 
getLibraryPath(ClassLoader, String) - Static method in class com.onionnetworks.util.NativeDeployer
 
getLocalResourcePath(ClassLoader, String) - Static method in class com.onionnetworks.util.NativeDeployer
 
getMax() - Method in class com.onionnetworks.util.Range
 
getMaxStripeSize() - Method in class com.onionnetworks.fec.io.FECParameters
 
getMedian(int[]) - Static method in class com.onionnetworks.util.SimUtil
Yes, this could be one line, but this really needs to be readable as an error in this method could really screw things up.
getMethod(Method[], String, Class[]) - Static method in class com.onionnetworks.util.Util
 
getMin() - Method in class com.onionnetworks.util.Range
 
getMode() - Method in class com.onionnetworks.fec.io.RAF
 
getN() - Method in class com.onionnetworks.fec.io.FECParameters
 
getNumStripes() - Method in class com.onionnetworks.fec.io.FECParameters
 
getPacketCount(int) - Method in class com.onionnetworks.fec.io.PacketPlacement
 
getPacketIndex() - Method in class com.onionnetworks.fec.io.PacketEntryAddedEvent
 
getPacketIndex() - Method in class com.onionnetworks.fec.io.DuplicatePacketException
 
getPacketIndex(int, int) - Method in class com.onionnetworks.fec.io.PacketPlacement
Perform a reverse lookup on the index to find the index of a specific packet.
getPacketSize() - Method in class com.onionnetworks.fec.io.FECParameters
 
getPacketSize(int, int) - Method in class com.onionnetworks.fec.io.FECParameters
 
getProperties() - Method in class com.onionnetworks.util.AsyncPersistentProps
 
getProperty(String) - Method in class com.onionnetworks.util.AsyncPersistentProps
 
getProperty(String) - Method in class com.onionnetworks.fec.DefaultFECCodeFactory
Get a value, trying the System properties first and then checking the fecProperties.
getPublicMethod(Class, String, Class[]) - Static method in class com.onionnetworks.util.Util
Class.getMethod requires exact parameters for the types.
getRate() - Method in class com.onionnetworks.util.RateCalculator
 
getRate(long) - Method in class com.onionnetworks.util.RateCalculator
If you are specifying a time with update(long time) then you must specify the time at which you wish to view the rate for, this time must be greater than the last time that was passed to the update call.
getRight() - Method in class com.onionnetworks.util.Tuple
 
getSpaces(int) - Static method in class com.onionnetworks.util.Util
 
getStripeNum() - Method in class com.onionnetworks.fec.io.PacketInfo
 
getStripeNum() - Method in class com.onionnetworks.fec.io.PacketNotFoundException
 
getStripeNum() - Method in class com.onionnetworks.fec.io.PacketWrittenEvent
 
getStripeNum() - Method in class com.onionnetworks.fec.io.BlockAlreadyDecodedException
 
getStripeNum() - Method in class com.onionnetworks.fec.io.DuplicatePacketException
 
getStripeNums(int) - Method in class com.onionnetworks.fec.io.PacketPlacement
 
getStripeNums(int, int) - Method in class com.onionnetworks.fec.io.PacketPlacement
 
getStripePacketCount(int) - Method in class com.onionnetworks.fec.io.FECParameters
 
getStripeSize(int) - Method in class com.onionnetworks.fec.io.FECParameters
 
getUnexpandedBlockSize() - Method in class com.onionnetworks.fec.io.FECParameters
 
getUnexpandedBlockSize(int) - Method in class com.onionnetworks.fec.io.FECParameters
 
getUnexpandedPacketCount() - Method in class com.onionnetworks.fec.io.FECParameters
 
getUnexpandedPacketCount(int) - Method in class com.onionnetworks.fec.io.FECParameters
 
getWrittenCount() - Method in class com.onionnetworks.fec.io.PacketPlacement
 
getWrittenCount() - Method in class com.onionnetworks.fec.io.FECFile
 
gf_exp - Variable in class com.onionnetworks.fec.FECMath
To speed up computations, we have tables for logarithm, exponent and inverse of a number.
gf_log - Variable in class com.onionnetworks.fec.FECMath
 
gf_mul_table - Variable in class com.onionnetworks.fec.FECMath
gf_mul(x,y) multiplies two numbers.
gfBits - Variable in class com.onionnetworks.fec.FECMath
The following parameter defines how many bits are used for field elements.
gfSize - Variable in class com.onionnetworks.fec.FECMath
 

H

handleException(Throwable) - Method in interface com.onionnetworks.util.ExceptionHandler
 
hashCode() - Method in class com.onionnetworks.util.TimedSoftHashMap.HashableSoftReference
 
hashCode() - Method in class com.onionnetworks.util.RangeSet
 
hashCode() - Method in class com.onionnetworks.util.Tuple
 
hashCode() - Method in class com.onionnetworks.util.Range
 
hashCode() - Method in class com.onionnetworks.fec.io.FECParameters
 
hashCode() - Method in class com.onionnetworks.fec.io.PacketInfo
 
hasNext() - Method in class com.onionnetworks.util.FilteringIterator
Checks if the parent iterator has another element that will pass the filter defined in accept.
hasNextInt() - Method in interface com.onionnetworks.util.IntIterator
 
hexToBytes(String) - Static method in class com.onionnetworks.util.Util
Create a byte array from a hex string
history - Variable in class com.onionnetworks.util.RateCalculator
 
historyPos - Variable in class com.onionnetworks.util.RateCalculator
 
historySize - Variable in class com.onionnetworks.util.RateCalculator
 
historyWeight - Variable in class com.onionnetworks.util.RateCalculator
 

I

initMulTable() - Method in class com.onionnetworks.fec.FECMath
 
intersect(RangeSet) - Method in class com.onionnetworks.util.RangeSet
 
intervalLength - Variable in class com.onionnetworks.util.RateCalculator
 
IntIterator - interface com.onionnetworks.util.IntIterator.
 
intIterator() - Method in class com.onionnetworks.util.RangeSet
 
inverse - Variable in class com.onionnetworks.fec.FECMath
 
invertMatrix(char[], int) - Method in class com.onionnetworks.fec.FECMath
 
invertVandermonde(char[], int) - Method in class com.onionnetworks.fec.FECMath
 
isBlockDecoded(int) - Method in class com.onionnetworks.fec.io.PacketPlacement
 
isBlockDecoded(int) - Method in class com.onionnetworks.fec.io.FECFile
 
isDecoded() - Method in class com.onionnetworks.fec.io.FECFile
 
isEmpty() - Method in class com.onionnetworks.util.TimedSoftHashMap
 
isEmpty() - Method in class com.onionnetworks.util.RangeSet
 
isIdentity(char[], int) - Static method in class com.onionnetworks.fec.FECMath
 
isMaxPosInf() - Method in class com.onionnetworks.util.Range
 
isMinNegInf() - Method in class com.onionnetworks.util.Range
 
isPaddingPacket(int, int) - Method in class com.onionnetworks.fec.io.FECParameters
Padding packets are empty packets that should never been read or written and shouldn't be sent across the network (they are all '0's)
isProbablyNat(byte[]) - Static method in class com.onionnetworks.util.Util
Check if an IP address is probably inside a NAT.
iterator() - Method in class com.onionnetworks.util.RangeSet
 

K

k - Variable in class com.onionnetworks.fec.FECCode
 
k - Variable in class com.onionnetworks.fec.io.FECParameters
 
keySet() - Method in class com.onionnetworks.util.TimedSoftHashMap
 

L

lastEstimatedEventCount - Variable in class com.onionnetworks.util.RateCalculator
 
lastIntervalTime - Variable in class com.onionnetworks.util.RateCalculator
 
lastPositiveUpdateTime - Variable in class com.onionnetworks.util.RateCalculator
 
left - Variable in class com.onionnetworks.util.Tuple
 
len - Variable in class com.onionnetworks.util.Buffer
 

M

main(String[]) - Static method in class com.onionnetworks.util.RandomPermutation
 
main(String[]) - Static method in class com.onionnetworks.util.RangeSet
 
main(String[]) - Static method in class com.onionnetworks.util.FilteringIterator
Test and example.
matMul(char[], char[], char[], int, int, int) - Method in class com.onionnetworks.fec.FECMath
 
matMul(char[], int, char[], int, char[], int, int, int, int) - Method in class com.onionnetworks.fec.FECMath
 
md - Variable in class com.onionnetworks.util.BlockDigestInputStream
 
modnn(int) - Method in class com.onionnetworks.fec.FECMath
modnn(x) computes x % gfSize, where gfSize is 2**gfBits - 1, without a slow divide.
mul(char, char) - Method in class com.onionnetworks.fec.FECMath
 

N

n - Variable in class com.onionnetworks.fec.FECCode
 
n - Variable in class com.onionnetworks.fec.io.FECParameters
 
NATIVE_PROPERTIES_PATH - Static variable in class com.onionnetworks.util.NativeDeployer
 
Native16Code - class com.onionnetworks.fec.Native16Code.
This class is the frontend for the JNI wrapper for the C implementation of the FEC Codes.
Native16Code(int, int) - Constructor for class com.onionnetworks.fec.Native16Code
 
Native8Code - class com.onionnetworks.fec.Native8Code.
This class is the frontend for the JNI wrapper for the C implementation of the FEC Codes.
Native8Code(int, int) - Constructor for class com.onionnetworks.fec.Native8Code
 
nativeDecode(int, byte[][], int[], int[], int, int) - Method in class com.onionnetworks.fec.Native8Code
 
nativeDecode(int, byte[][], int[], int[], int, int) - Method in class com.onionnetworks.fec.Native16Code
 
NativeDeployer - class com.onionnetworks.util.NativeDeployer.
This class is used for deploying native libraries that are stored inside jar files.
NativeDeployer() - Constructor for class com.onionnetworks.util.NativeDeployer
 
nativeEncode(int, byte[][], int[], int[], byte[][], int[], int, int) - Method in class com.onionnetworks.fec.Native8Code
 
nativeEncode(int, byte[][], int[], int[], byte[][], int[], int, int) - Method in class com.onionnetworks.fec.Native16Code
 
nativeFreeFEC(int) - Method in class com.onionnetworks.fec.Native8Code
 
nativeFreeFEC(int) - Method in class com.onionnetworks.fec.Native16Code
 
nativeNewFEC(int, int) - Method in class com.onionnetworks.fec.Native8Code
 
nativeNewFEC(int, int) - Method in class com.onionnetworks.fec.Native16Code
 
next() - Method in class com.onionnetworks.util.RandomPermutation
 
next() - Method in class com.onionnetworks.util.FilteringIterator
Returns the next object from the parent iterator which passes the filter defined by accept.
nextInt() - Method in interface com.onionnetworks.util.IntIterator
 
NOTIFY - Static variable in interface com.onionnetworks.fec.io.FECIOListener
 
notify(FECIOEvent) - Method in interface com.onionnetworks.fec.io.FECIOListener
 
notify(FECIOEvent) - Method in class com.onionnetworks.fec.io.FECFile.Decoder
 
numBlocks - Variable in class com.onionnetworks.fec.io.FECParameters
 

O

off - Variable in class com.onionnetworks.util.Buffer
 
OS_ARCH - Static variable in class com.onionnetworks.util.NativeDeployer
 

P

PacketEntryAddedEvent - class com.onionnetworks.fec.io.PacketEntryAddedEvent.
This event signifies that a new packet entry has been added.
PacketEntryAddedEvent(Object, int) - Constructor for class com.onionnetworks.fec.io.PacketEntryAddedEvent
 
PacketInfo - class com.onionnetworks.fec.io.PacketInfo.
This class provides a (blockNum,stripeNum) tuple that is comparable for equality.
PacketInfo(int, int) - Constructor for class com.onionnetworks.fec.io.PacketInfo
 
PacketNotFoundException - exception com.onionnetworks.fec.io.PacketNotFoundException.
This exception signals that there was an attempt to read a packet that can't be found, or created from the data on disk.
PacketNotFoundException(int, int) - Constructor for class com.onionnetworks.fec.io.PacketNotFoundException
 
PacketNotFoundException(String, int, int) - Constructor for class com.onionnetworks.fec.io.PacketNotFoundException
 
PacketPlacement - class com.onionnetworks.fec.io.PacketPlacement.
This class allocates and tracks how packets are written to disk.
PacketPlacement(FECParameters) - Constructor for class com.onionnetworks.fec.io.PacketPlacement
Creates a new PacketPlacement object.
packetSize - Variable in class com.onionnetworks.fec.io.FECParameters
 
PacketWrittenEvent - class com.onionnetworks.fec.io.PacketWrittenEvent.
This event signifies that a new packet was recieved and written to disk.
PacketWrittenEvent(Object, int, int, int) - Constructor for class com.onionnetworks.fec.io.PacketWrittenEvent
 
parse(String) - Static method in class com.onionnetworks.util.RangeSet
Parse a set of ranges seperated by commas.
parse(String) - Static method in class com.onionnetworks.util.Range
This method creates a new range from a String.
prim_polys - Static variable in class com.onionnetworks.fec.FECMath
Primitive polynomials - see Lin & Costello, Appendix A, and Lee & Messerschmitt, p.
printGraphCommand(String, String, String, int[][], String[]) - Static method in class com.onionnetworks.util.SimUtil
Prints a command to be redirected to a file, and run as a shell script for invoking the GNU plotutils "graph" command.
Pure16Code - class com.onionnetworks.fec.Pure16Code.
This class, along with FECMath, provides the implementation of the pure Java 16 bit FEC codes.
Pure16Code(int, int) - Constructor for class com.onionnetworks.fec.Pure16Code
Notes about large N support: you can just generate the top k*k vandermonde matrix, call it V, then invert it, then when you have k blocks generate a matrix M with the k rows you need and E = M* V^{-1} is the encoding matrix for the systematic code which you then need to invert to perform the decoding.
PureCode - class com.onionnetworks.fec.PureCode.
This class, along with FECMath, provides the implementation of the pure Java 8 bit FEC codes.
PureCode(int, int) - Constructor for class com.onionnetworks.fec.PureCode
 
PureCode(int, int, char[]) - Constructor for class com.onionnetworks.fec.PureCode
 
put(Object, Object) - Method in class com.onionnetworks.util.TimedSoftHashMap
 
put(Object, Object, int) - Method in class com.onionnetworks.util.TimedSoftHashMap
 
putAll(Map) - Method in class com.onionnetworks.util.TimedSoftHashMap
 

R

RAF - class com.onionnetworks.fec.io.RAF.
This class wraps a RandomAccessFile with synchronization and a more consistant version of renameTo().
RAF(File, String) - Constructor for class com.onionnetworks.fec.io.RAF
 
rand - Static variable in class com.onionnetworks.util.Util
 
RandomPermutation - class com.onionnetworks.util.RandomPermutation.
This class uses a linear congruential generator to generate 0..n with no duplicates until n numbers have been generated.
RandomPermutation(int) - Constructor for class com.onionnetworks.util.RandomPermutation
 
Range - class com.onionnetworks.util.Range.
This class represents a range of integers (incuding positive and negative infinity).
Range(boolean, boolean) - Constructor for class com.onionnetworks.util.Range
Creates a new Range from negative infinity to positive infinity.
Range(boolean, int) - Constructor for class com.onionnetworks.util.Range
Creates a new Range from negative infinity to max.
Range(int) - Constructor for class com.onionnetworks.util.Range
Creates a new Range that is only one number, both min and max will equal that number.
Range(int, boolean) - Constructor for class com.onionnetworks.util.Range
Creates a new Range from min to postive infinity
Range(int, int) - Constructor for class com.onionnetworks.util.Range
Creates a new Range from min and max (inclusive)
RangeSet - class com.onionnetworks.util.RangeSet.
This class represents a set of integers in a compact form by using ranges.
RangeSet() - Constructor for class com.onionnetworks.util.RangeSet
Creates a new empty RangeSet
RateCalculator - class com.onionnetworks.util.RateCalculator.
This class allows you to easily compute rate for various events.
RateCalculator() - Constructor for class com.onionnetworks.util.RateCalculator
Construct a new RateCalculator using the default values.
RateCalculator(int, int, float) - Constructor for class com.onionnetworks.util.RateCalculator
Construct a new RateCalculator.
read() - Method in class com.onionnetworks.util.BlockDigestInputStream
 
read(Buffer[], int, int[]) - Method in class com.onionnetworks.fec.io.FECFile
This method reads a number of packets (encoding them if necessary) into the provided buffers.
read(byte[], int, int) - Method in class com.onionnetworks.util.BlockDigestInputStream
 
ReflectiveEventDispatcher - class com.onionnetworks.util.ReflectiveEventDispatcher.
 
ReflectiveEventDispatcher() - Constructor for class com.onionnetworks.util.ReflectiveEventDispatcher
 
releaseAllWriteLocks() - Method in class com.onionnetworks.fec.io.FECFile
Releases all write block locks.
remove() - Method in class com.onionnetworks.util.FilteringIterator
Unsupported.
remove(int) - Method in class com.onionnetworks.util.RangeSet
 
remove(int, int) - Method in class com.onionnetworks.util.RangeSet
 
remove(Object) - Method in class com.onionnetworks.util.TimedSoftHashMap
 
remove(Range) - Method in class com.onionnetworks.util.RangeSet
 
remove(RangeSet) - Method in class com.onionnetworks.util.RangeSet
 
removeFECIOListener(FECIOListener) - Method in class com.onionnetworks.fec.io.FECFile
 
removeInt() - Method in interface com.onionnetworks.util.IntIterator
 
removeListener(EventListener, String) - Method in class com.onionnetworks.util.ReflectiveEventDispatcher
 
removeListener(EventListener, String[]) - Method in class com.onionnetworks.util.ReflectiveEventDispatcher
 
renameTo(File) - Method in class com.onionnetworks.fec.io.FECFile
When the File is opened in r/w mode you must specify a destination.
renameTo(File) - Method in class com.onionnetworks.fec.io.RAF
This version of renameTo() attempts to mimic the behavior of the unix 'mv' command rather than File.renameTo.
renew() - Method in class com.onionnetworks.util.TimedSoftHashMap.HashableSoftReference
 
right - Variable in class com.onionnetworks.util.Tuple
 
run() - Method in class com.onionnetworks.util.AsyncPersistentProps
 
run() - Method in class com.onionnetworks.util.ReflectiveEventDispatcher
 
run() - Method in class com.onionnetworks.fec.io.FECFile.Decoder
 

S

seekAndReadFully(long, byte[], int, int) - Method in class com.onionnetworks.fec.io.RAF
 
seekAndWrite(long, byte[], int, int) - Method in class com.onionnetworks.fec.io.RAF
 
setBlockDecoded(int) - Method in class com.onionnetworks.fec.io.PacketPlacement
Signify that this block has been decoded.
setDecodeExceptionHandler(ExceptionHandler) - Method in class com.onionnetworks.fec.io.FECFile
Sets the ExceptionHandler for dealing with problems that occur during decoding.
setDispatchExceptionHandler(ExceptionHandler) - Method in class com.onionnetworks.util.ReflectiveEventDispatcher
 
setLength(long) - Method in class com.onionnetworks.fec.io.RAF
 
setPriority(int) - Method in class com.onionnetworks.util.ReflectiveEventDispatcher
 
setProperty(String, String) - Method in class com.onionnetworks.util.AsyncPersistentProps
 
setReadOnly() - Method in class com.onionnetworks.fec.io.RAF
 
shuffle(boolean[]) - Static method in class com.onionnetworks.util.Util
 
shuffle(byte[][], int[], int[], int) - Static method in class com.onionnetworks.fec.FECCode
shuffle move src packets in their position
shuffle(int[]) - Static method in class com.onionnetworks.util.Util
Fisher-Yates shuffle.
shuffle(Object[]) - Static method in class com.onionnetworks.util.Util
 
SimUtil - class com.onionnetworks.util.SimUtil.
 
SimUtil() - Constructor for class com.onionnetworks.util.SimUtil
 
sixteenBitCodes - Variable in class com.onionnetworks.fec.DefaultFECCodeFactory
 
size() - Method in class com.onionnetworks.util.TimedSoftHashMap
 
size() - Method in class com.onionnetworks.util.RangeSet
 
size() - Method in class com.onionnetworks.util.Range
 
skip(long) - Method in class com.onionnetworks.util.BlockDigestInputStream
 
swap(int[], int, int) - Static method in class com.onionnetworks.util.SimUtil
 

T

TimedSoftHashMap - class com.onionnetworks.util.TimedSoftHashMap.
 
TimedSoftHashMap.HashableSoftReference - class com.onionnetworks.util.TimedSoftHashMap.HashableSoftReference.
This class is only necessary for the containsValue calls, as the keys in the TimedSoftHashMap should not be SoftReferences and there for should already have equals() and hashCode() that works.
TimedSoftHashMap.HashableSoftReference(TimedSoftHashMap, Object, int) - Constructor for class com.onionnetworks.util.TimedSoftHashMap.HashableSoftReference
 
TimedSoftHashMap() - Constructor for class com.onionnetworks.util.TimedSoftHashMap
 
TimedSoftHashMap(int) - Constructor for class com.onionnetworks.util.TimedSoftHashMap
 
TimedSoftHashMap(int, float) - Constructor for class com.onionnetworks.util.TimedSoftHashMap
 
TimedSoftHashMap(Map) - Constructor for class com.onionnetworks.util.TimedSoftHashMap
 
toString() - Method in class com.onionnetworks.util.RangeSet
Outputs the Range in a manner that can be used to directly create a new range with the "parse" method.
toString() - Method in class com.onionnetworks.util.Buffer
 
toString() - Method in class com.onionnetworks.util.Range
 
toString() - Method in class com.onionnetworks.fec.Native8Code
 
toString() - Method in class com.onionnetworks.fec.Native16Code
 
toString() - Method in class com.onionnetworks.fec.PureCode
 
toString() - Method in class com.onionnetworks.fec.Pure16Code
 
toString() - Method in class com.onionnetworks.fec.io.FECParameters
 
totalEvents - Variable in class com.onionnetworks.util.RateCalculator
 
tryDecode(int, int[]) - Method in class com.onionnetworks.fec.io.FECFile
Try to decode the specified block.
ttl - Variable in class com.onionnetworks.util.TimedSoftHashMap.HashableSoftReference
 
Tuple - class com.onionnetworks.util.Tuple.
 
Tuple(Object, Object) - Constructor for class com.onionnetworks.util.Tuple
 

U

union(RangeSet) - Method in class com.onionnetworks.util.RangeSet
 
update(double) - Method in class com.onionnetworks.util.RateCalculator
This is the preferred way to update the number of events for rate calculation, it will simply use the time of the call to keep track of when the events occured.
update(double, long) - Method in class com.onionnetworks.util.RateCalculator
If you wish to specify exactly the time at which the events occured you can use this method.
Util - class com.onionnetworks.util.Util.
 
Util() - Constructor for class com.onionnetworks.util.Util
 

V

values() - Method in class com.onionnetworks.util.TimedSoftHashMap
 

W

waitForFileDecoded() - Method in class com.onionnetworks.fec.io.FECFile
This method blocks and returns once the file has been decoded.
wrapBuffer(byte[]) - Method in class com.onionnetworks.fec.io.FECFile
 
write(Buffer, int, int) - Method in class com.onionnetworks.fec.io.FECFile
Writes a packet to disk.

A B C D E F G H I K L M N O P R S T U V W