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

A

acceptForStateless(String) - Method in interface net.siefkes.nlstego.predict.StatelessFilter
Whether a key should be accepted for the stateless model.
acceptForStateless(String) - Method in class net.siefkes.nlstego.textgen.TextModel
Whether a key should be accepted for the stateless model. This implementation rejects tokens that start with an alphanumeric character to ensure correct tokenization when decoding.
add(String, int) - Method in class net.siefkes.nlstego.predict.FetchStats
Adds a request of an item, training the model.
add(String, int, boolean) - Method in class net.siefkes.nlstego.predict.FetchStats
Adds a request of an item.
add(String, int, boolean) - Method in class net.siefkes.nlstego.predict.PPMFetchStats
Adds a request of an item.
addItem(String, boolean) - Method in class net.siefkes.nlstego.predict.PredictionManager
Registers an actual request.
asBoolean(char) - Static method in class net.siefkes.nlstego.util.Util
Converts a character into a boolean primitive.
asBoolean(String) - Static method in class net.siefkes.nlstego.util.Util
Converts a String into a boolean primitive.
asChar(String) - Static method in class net.siefkes.nlstego.util.Util
Converts a String into a char primitive.
asDouble(String) - Static method in class net.siefkes.nlstego.util.Util
Converts a String into a double primitive using the Double.parseDouble(java.lang.String) method.
asFloat(String) - Static method in class net.siefkes.nlstego.util.Util
Converts a String into a float primitive using the Float.parseFloat(java.lang.String) method.
asInt(String) - Static method in class net.siefkes.nlstego.util.Util
Converts a String into an integer primitive using the Integer.decode(java.lang.String) method.
asLong(String) - Static method in class net.siefkes.nlstego.util.Util
Converts a String into a long primitive using the Long.decode(java.lang.String) method.
asShort(String) - Static method in class net.siefkes.nlstego.util.Util
Converts a String into a short primitive using the Short.decode(java.lang.String) method.

B

BitArray - Class in net.siefkes.nlstego.util
This class provides read access to an array of bits (booleans).
BitArray(int) - Constructor for class net.siefkes.nlstego.util.BitArray
Creates a new instance.
BitArray(byte[]) - Constructor for class net.siefkes.nlstego.util.BitArray
Creates a new instance.
BitArray(InputStream) - Constructor for class net.siefkes.nlstego.util.BitArray
Creates a new instance, reading the data to wrap from an input stream.
buildTextModel(String[], boolean) - Method in class net.siefkes.nlstego.NLStego
Build a text model from a set of texts.
byteLength() - Method in class net.siefkes.nlstego.util.BitArray
Returns the length of this array, in bytes.

C

capturedText() - Method in class net.siefkes.nlstego.util.TextTokenizer
Returns the text captured within "capturing groups" in the last token.
choosePredictions() - Method in class net.siefkes.nlstego.predict.PredictionManager
Delegates to PredictionManager.choosePredictions(int), setting the number of predictions to return to PredictionManager.getNumberOfPredictions().
choosePredictions(int) - Method in class net.siefkes.nlstego.predict.PredictionManager
Selects the most valuable predictions.
collectResults() - Static method in class net.siefkes.nlstego.predict.Metrics
Collects the results of all metrics for publication.
compress(byte[]) - Static method in class net.siefkes.nlstego.util.InOutUtils
Compresses data using GZip for compression.
configureFromArgs(Configuration, String[]) - Static method in class net.siefkes.nlstego.util.Util
Modifies a configuration from -key[=value] pairs in a string array.
ContentType - Class in net.siefkes.nlstego.util
A simple wrapper for the MIME type and the character set of a document.
createAlnumTokenizer(CharSequence) - Static method in class net.siefkes.nlstego.util.TokenizerFactory
Static factory method to create an instance for tokenizing alphanumeric and symbol sequences and puntuation.
createCategoryTokenizer(CharSequence) - Static method in class net.siefkes.nlstego.util.TokenizerFactory
Static factory method to create an instance for tokenizing according to Unicode categories.
createThoroughTokenizer(CharSequence) - Static method in class net.siefkes.nlstego.util.TokenizerFactory
Static factory method to create an instance that uses the "thorough" patterns listed below.
createTokenizer(CharSequence) - Method in class net.siefkes.nlstego.textgen.TextModel
Creates a tokenizer for splitting text into texts.

D

debugBits(int, boolean, int, int, String) - Method in class net.siefkes.nlstego.textgen.StegoCoder
Adds a debug statement that allows tracing the encoding/decoding of bits.
debugSingleton(String) - Method in class net.siefkes.nlstego.textgen.StegoCoder
Adds a debug statement that allows tracing the occurrence of single-element prediction lists.
decode(Reader) - Method in class net.siefkes.nlstego.textgen.StegoDecoder
Reads a stego text and decodes the embedded bit sequence.
decodeVInt(InputStream) - Static method in class net.siefkes.nlstego.util.NumUtils
Reads a number in the variable-length VInt format (as used by Apache Lucene).
DEFAULT_NORMALIZED_WS - Static variable in class net.siefkes.nlstego.util.TextTokenizer
The normalized whitespace representation prepended by a default if TextTokenizer.normalizedWhitespacePrepended is true: 32 (a space character).
determineContentType(String) - Static method in class net.siefkes.nlstego.util.ContentType
Factory method to determines the content type based an "Content-Type" header.

E

encode(InputStream) - Method in class net.siefkes.nlstego.textgen.StegoEncoder
Reads a bit sequence and encodes it into an inconspicuous stego text.
encode(byte[]) - Method in class net.siefkes.nlstego.textgen.StegoEncoder
Reads a bit sequence and encodes it into an inconspicuous stego text.
encodeVInt(long, OutputStream) - Static method in class net.siefkes.nlstego.util.NumUtils
Encodes a number in the variable-length VInt format (as used by Apache Lucene).
encodeVInt(long) - Static method in class net.siefkes.nlstego.util.NumUtils
Encodes a number in the variable-length VInt format (as used by Apache Lucene).
END_OF_SESSION - Static variable in class net.siefkes.nlstego.predict.FetchStats
Constant used to mark the end of a session.
endsVInt(byte) - Static method in class net.siefkes.nlstego.util.NumUtils
Checks whether a byte is the last byte of a number stored in the variable-length VInt format (as used by Apache Lucene).
execute(char, List<String>) - Method in class net.siefkes.nlstego.NLStego
Executes the given command on the given arguments (if any).
ExtendedLRUMap - Class in net.siefkes.nlstego.util
An extension of the LRUMap that also allows transparent (invisible) read operations which do not modify the access order of the map entries.
ExtendedLRUMap() - Constructor for class net.siefkes.nlstego.util.ExtendedLRUMap
Creates a new instance.
ExtendedLRUMap(int) - Constructor for class net.siefkes.nlstego.util.ExtendedLRUMap
Creates a new instance.
ExtendedLRUMap(int, boolean) - Constructor for class net.siefkes.nlstego.util.ExtendedLRUMap
Creates a new instance.
ExtendedLRUMap(int, float) - Constructor for class net.siefkes.nlstego.util.ExtendedLRUMap
Creates a new instance.
ExtendedLRUMap(int, float, boolean) - Constructor for class net.siefkes.nlstego.util.ExtendedLRUMap
Creates a new instance.
ExtendedLRUMap(Map) - Constructor for class net.siefkes.nlstego.util.ExtendedLRUMap
Constructor copying elements from another map.
ExtendedLRUMap(Map, boolean) - Constructor for class net.siefkes.nlstego.util.ExtendedLRUMap
Constructor copying elements from another map.

F

FALSE_CHAR - Static variable in class net.siefkes.nlstego.util.Util
Character representing the boolean value false: '-'.
FetchStats - Class in net.siefkes.nlstego.predict
Abstract class for collecting statistics about the fetching of items that can be used for predicting.
FetchStats(Configuration, StatelessFilter) - Constructor for class net.siefkes.nlstego.predict.FetchStats
Creates a new instance.
filterFirst(List<PredictedToken>) - Method in class net.siefkes.nlstego.textgen.StegoCoder
This method is called during encoding and decoding to filter unsuitable predictions for the very first token in a stego text.
findFirstEndOfSentenceToken(List<PredictedToken>) - Method in class net.siefkes.nlstego.textgen.TextModel
Finds the first (most likely) end-of-sentence token among a list of predictions.
formatDouble(double) - Static method in class net.siefkes.nlstego.util.Util
Formats a double, using three decimal digits.
formatDouble(double, int) - Static method in class net.siefkes.nlstego.util.Util
Formats a double, using the specified number of decimal digits.
formatPercentage(double) - Static method in class net.siefkes.nlstego.util.Util
Formats a number as a percentage, using three decimal digits.
formatPercentage(double, int) - Static method in class net.siefkes.nlstego.util.Util
Formats a number as a percentage, using the specified number of decimal digits.

G

generateText(TextModel, int) - Method in class net.siefkes.nlstego.NLStego
Generates random text.
get(int, int) - Method in class net.siefkes.nlstego.util.BitArray
Returns the value of a bit.
getBlendingNum() - Method in class net.siefkes.nlstego.predict.PPMFetchStats
A standard get*().
getByte(int) - Method in class net.siefkes.nlstego.util.BitArray
Returns the value of a byte.
getBytes() - Method in class net.siefkes.nlstego.util.BitArray
Returns the internal byte array wrapped by this instance.
getCharset() - Method in class net.siefkes.nlstego.util.ContentType
Returns the character set.
getConfig() - Static method in class net.siefkes.nlstego.predict.Metrics
A standard get*().
getDecFactor() - Method in class net.siefkes.nlstego.predict.PPMFetchStats
A standard get*().
getID() - Method in class net.siefkes.nlstego.predict.FetchStats
Returns the unique ID of this instance.
getID() - Method in class net.siefkes.nlstego.predict.PredictionManager
Returns the unique ID of this instance.
getIDInteger() - Method in class net.siefkes.nlstego.predict.FetchStats
Returns the unique ID of this instance as an Integer object, for easy storage in collections etc..
getInnerCacheSize() - Method in class net.siefkes.nlstego.predict.PPMFetchStats
A standard get*().
getLargestOuterCacheSize() - Method in class net.siefkes.nlstego.predict.PPMFetchStats
A standard get*().
getLengthOfHistory() - Method in class net.siefkes.nlstego.predict.PPMFetchStats
A standard get*().
getMimeType() - Method in class net.siefkes.nlstego.util.ContentType
Returns the MIME type.
getMinAccesses() - Method in class net.siefkes.nlstego.predict.PPMFetchStats
A standard get*().
getMinProbability() - Method in class net.siefkes.nlstego.predict.PredictionManager
A standard get*().
getNormalizedWhitespace() - Method in class net.siefkes.nlstego.util.TextTokenizer
Returns the normalized whitespace representation prepended if TextTokenizer.isNormalizedWhitespacePrepended() is true.
getPredictionModelList() - Method in class net.siefkes.nlstego.predict.PredictionManager
Returns an iterator over the registered prediction models.
getProbability() - Method in class net.siefkes.nlstego.predict.PredictedToken
Returns the probability of this token.
getStatelessFilter() - Method in class net.siefkes.nlstego.predict.FetchStats
Returns the optional filter that decides which predictions should be stored in the stateless (global) model; if null, all predictions are stored.
getTextModel() - Method in class net.siefkes.nlstego.textgen.StegoCoder
Returns the text model used by this instance.
getThreshold() - Method in class net.siefkes.nlstego.textgen.TextModel
Returns the threshold for discarding unlikely predictions.
getToken() - Method in class net.siefkes.nlstego.predict.PredictedToken
Returns the String representation of this token.

H

hasNext() - Method in class net.siefkes.nlstego.util.BitArray
Checks whether there are more bits to read or set from this array.
hasPrecedingWhitespace() - Method in class net.siefkes.nlstego.util.TextTokenizer
Whether the token returned by the last call to TextTokenizer.nextToken() is preceded by whitespace (i.e., text not matched by any token).

I

ID - Static variable in class net.siefkes.nlstego.NLStego
The ID of this software, used as base name of the config file etc.: "nlstego".
initialWhitespaceCount(String) - Method in class net.siefkes.nlstego.util.TextTokenizer
Convenience method that counts the number of whitespace characters at the begin of a string, according to the defined whitespace pattern.
InOutUtils - Class in net.siefkes.nlstego.util
A static class that provides utility constants and methods for I/O.
INVALID_COMMAND - Static variable in class net.siefkes.nlstego.NLStego
Marker used for invalid or missing commands.
isEndOfSentenceToken(String) - Method in class net.siefkes.nlstego.textgen.TextModel
Checks whether a token is suitable as the end of a sentence.
isNormalizedWhitespacePrepended() - Method in class net.siefkes.nlstego.util.TextTokenizer
Returns whether whitespace is prepended in a normalized form (TextTokenizer.getNormalizedWhitespace()) to those tokens where TextTokenizer.hasPrecedingWhitespace() would return true.
isValidWhitespace(String) - Method in class net.siefkes.nlstego.util.TextTokenizer
Convenience method that checks whether a string matches the defined whitespace pattern.
isWhitespacePatternEnsured() - Method in class net.siefkes.nlstego.util.TextTokenizer
Whether whitespace (the text between patterns) is checked to ensure that the defined whitespace pattern is matched.

K

KEY_MIME_TYPE - Static variable in class net.siefkes.nlstego.util.ContentType
Context key recommended to store the MIME type string.

L

leftText() - Method in class net.siefkes.nlstego.util.TextTokenizer
Returns the complete text to the left (preceding) the token returned by the last call to TextTokenizer.nextToken().
length() - Method in class net.siefkes.nlstego.util.BitArray
Returns the length of this array, in bits.
LINE_SEPARATOR - Static variable in class net.siefkes.nlstego.util.InOutUtils
The line separator on the current operating system ("\n" on Unix).
LINE_SEPARATOR - Static variable in class net.siefkes.nlstego.util.Util
The line separator on the current operating system ("\n" on Unix).
listFileContents(String[], boolean) - Static method in class net.siefkes.nlstego.util.InOutUtils
This method converts an array of file paths into an array of FileContent objects.
loadConfiguration(String) - Static method in class net.siefkes.nlstego.util.Util
Loads a configuration in PropertiesConfiguration from the baseName.cfg in the user's home directory, if it exists and is a readable file.
LOG - Static variable in class net.siefkes.nlstego.NLStego
The logger used in this system.
log(int, Object, Throwable) - Method in class net.siefkes.nlstego.util.VerySimpleLog

M

main(String[]) - Static method in class net.siefkes.nlstego.NLStego
Static main method: create and configure a new instance and executes the given command (first argument) on the given arguments.
main(String[]) - Static method in class net.siefkes.nlstego.textgen.TextModel
Does some tests, tokenizing and printing some files.
mapKey(String) - Static method in class net.siefkes.nlstego.predict.FetchStats
Maps the key used to identify a document to a compact representation used for storing it in the FetchStats.
Metrics - Class in net.siefkes.nlstego.predict
Implementations of this abstract class handle performance measuring and logging.
MIME_HTML - Static variable in class net.siefkes.nlstego.util.ContentType
MIME type for HTML.
MIME_PLAIN - Static variable in class net.siefkes.nlstego.util.ContentType
MIME type for plain text.
modifyConfigProperty(Configuration, String) - Static method in class net.siefkes.nlstego.util.Util
Modifies a configuration property, parsing a key[=value] pair.
MORE_DIGITS - Static variable in class net.siefkes.nlstego.predict.Metrics
The number of digits used for formatting potentially small data, where more digits than usually should be shown.

N

NAME - Static variable in class net.siefkes.nlstego.NLStego
The name of this software: "NLStego".
NAN - Static variable in class net.siefkes.nlstego.util.Util
String recognized as Not-a-Number when parsing floating-point numbers: "NaN" (ignoring case).
net.siefkes.nlstego - package net.siefkes.nlstego
This package contains the main entry point for the NL stego software.
net.siefkes.nlstego.predict - package net.siefkes.nlstego.predict
The classes contained in this package provide functionality for building statistical prediction models and for predicting items based on these models.
net.siefkes.nlstego.textgen - package net.siefkes.nlstego.textgen
This package contains functionality for completing and generating texts based on statistical text models, including generation and decoding of stego text hiding an embedded bit sequence.
net.siefkes.nlstego.util - package net.siefkes.nlstego.util
This package contains miscellaneous utility classes.
next() - Method in class net.siefkes.nlstego.util.BitArray
Returns the next unread or unset bit from this array.
nextToken() - Method in class net.siefkes.nlstego.util.TextTokenizer
Returns the next token, or null if there are no more tokens left in the provided text.
NLStego - Class in net.siefkes.nlstego
The main entry point of this program.
NLStego(Configuration) - Constructor for class net.siefkes.nlstego.NLStego
Creates a new instance, using the standard input/output/error streams for I/O.
NLStego(Configuration, InputStream, PrintStream, PrintStream) - Constructor for class net.siefkes.nlstego.NLStego
Creates a new instance.
NumUtils - Class in net.siefkes.nlstego.util
A static utility class that provides methods for working with numbers.

O

openReader(FileContent) - Static method in class net.siefkes.nlstego.util.InOutUtils
Opens a reader on a FileContent object.

P

PPMFetchStats - Class in net.siefkes.nlstego.predict
Implementation of the FetchStats class using a Prediction-by-Partial-Match strategy.
PPMFetchStats(Configuration, StatelessFilter) - Constructor for class net.siefkes.nlstego.predict.PPMFetchStats
Creates a new instance.
precedingWhitespace() - Method in class net.siefkes.nlstego.util.TextTokenizer
Returns the whitespace (i.e., text not matched by any token) preceding the token returned by the last call to TextTokenizer.nextToken().
precedingWhitespaceIsValid() - Method in class net.siefkes.nlstego.util.TextTokenizer
Checks whether the whitespace (i.e., text not matched by any token) preceding the token returned by the last call to TextTokenizer.nextToken() matches the defined whitespace pattern.
predict(int, int) - Method in class net.siefkes.nlstego.predict.FetchStats
Predicts the documents that will be probably fetched next.
predict(int, int) - Method in class net.siefkes.nlstego.predict.PPMFetchStats
Predicts the items that will probably be requested next.
PredictedToken - Class in net.siefkes.nlstego.predict
Wrapper for a predicted token.
PredictedToken(String, double) - Constructor for class net.siefkes.nlstego.predict.PredictedToken
Creates a new instance.
PredictionManager - Class in net.siefkes.nlstego.predict
Manages the predictions of items, combining different prediction models.
PredictionManager(Configuration) - Constructor for class net.siefkes.nlstego.predict.PredictionManager
Creates a new instance.
predictLikely() - Method in class net.siefkes.nlstego.textgen.TextModel
Returns a list of likely predictions, sorted by probability.
predictLikelyWithoutRepetitions() - Method in class net.siefkes.nlstego.textgen.TextModel
Returns a list of likely predictions, sorted by probability.
predictTokens(int, boolean, StringBuilder) - Method in class net.siefkes.nlstego.textgen.TextModel
Predicts the tokens that will probably be generated next, randomly selecting tokens according to their probability (considering only the first 50% of the probability mass to avoid unlikely predictions which are likely to turn out dead ends).
predictTokens(int, int, boolean, StringBuilder) - Method in class net.siefkes.nlstego.textgen.TextModel
Predicts the tokens that will probably be requested next, randomly selecting tokens according to their probability (considering only the first 50% of the probability mass to avoid unlikely predictions which are likely to turn out dead ends).
printModelStats() - Method in class net.siefkes.nlstego.predict.FetchStats
Prints statistical information about this model.
printModelStats() - Method in class net.siefkes.nlstego.predict.PPMFetchStats
Prints statistical information about this model.
printModelStats() - Method in class net.siefkes.nlstego.predict.PredictionManager
Prints statistical information about the used models.
printUsage() - Method in class net.siefkes.nlstego.NLStego
Helper method that prints usage instructions to the error stream.
printVersion() - Method in class net.siefkes.nlstego.NLStego
Helper method that prints name and version number of this program to the error stream.
printWrapped(String) - Method in class net.siefkes.nlstego.NLStego
Helper method that prints a text to the output stream, adding linebreaks after 75 characters.
printWrapped(String, int) - Method in class net.siefkes.nlstego.NLStego
Helper method that prints a text to the output stream, adding linebreaks after the specified number of characters.

R

readExpectedByte(InputStream) - Static method in class net.siefkes.nlstego.util.InOutUtils
Reads a byte from an input stream, throwing an EOFException if the end of the stream has been reached.
readToString(Reader) - Static method in class net.siefkes.nlstego.util.InOutUtils
Reads the contents of a reader into a string.
registerPredictionModel(FetchStats) - Method in class net.siefkes.nlstego.predict.PredictionManager
Registers a prediction model with this prediction manager.
RES - Static variable in class net.siefkes.nlstego.NLStego
Messages used by this program.
reset() - Static method in class net.siefkes.nlstego.predict.Metrics
Removes all registered instances and resets all static fields (so their results will not be collected and published any more).
reset() - Method in class net.siefkes.nlstego.util.TextTokenizer
Resets this tokenizer, so it will restart at the begin of the current text.
reset(CharSequence) - Method in class net.siefkes.nlstego.util.TextTokenizer
Resets this tokenizer, so it will restart at the begin of the provided text.
resetState() - Method in class net.siefkes.nlstego.textgen.StegoCoder
Resets the state of this instance, to start encoding/decoding a new text sequence.
rightText() - Method in class net.siefkes.nlstego.util.TextTokenizer
Returns the complete text to the right (following) the token returned by the last call to TextTokenizer.nextToken().

S

sessionEnded(int) - Method in class net.siefkes.nlstego.predict.FetchStats
Marks a session as ended.
sessionEnded(int) - Method in class net.siefkes.nlstego.predict.PPMFetchStats
Marks a session as ended.
set(int, int, boolean) - Method in class net.siefkes.nlstego.util.BitArray
Modifies the value of a bit.
setNext(boolean) - Method in class net.siefkes.nlstego.util.BitArray
Returns the next unread or unset bit from this array.
setNormalizedWhitespace(String) - Method in class net.siefkes.nlstego.util.TextTokenizer
Changes the normalized whitespace representation prepended if TextTokenizer.isNormalizedWhitespacePrepended() is true.
setNormalizedWhitespacePrepended(boolean) - Method in class net.siefkes.nlstego.util.TextTokenizer
Changes whether whitespace is prepended in a normalized form (TextTokenizer.getNormalizedWhitespace()) to those tokens where TextTokenizer.hasPrecedingWhitespace() would return true.
setWhitespacePatternEnsured(boolean) - Method in class net.siefkes.nlstego.util.TextTokenizer
Specifies whether whitespace (the text between patterns) is checked to ensure that the defined whitespace pattern is matched.
shutdown(boolean) - Method in class net.siefkes.nlstego.predict.FetchStats
Shuts down this entity.
STANDARD_BLOCK_SIZE - Static variable in class net.siefkes.nlstego.util.InOutUtils
The standard block size recommended for I/O.
STANDARD_HTTP_CHARSET - Static variable in class net.siefkes.nlstego.util.InOutUtils
The standard character set defined by the HTTP standard.
STANDARD_UNICODE_CHARSET - Static variable in class net.siefkes.nlstego.util.InOutUtils
The standard Unicode-compatible character set.
START_OF_SESSION - Static variable in class net.siefkes.nlstego.predict.FetchStats
Constant used to mark the start of a session.
startsWithWS(String) - Method in class net.siefkes.nlstego.textgen.TextModel
Checks whether a token starts with normalized whitespace.
startTokenSequence() - Method in class net.siefkes.nlstego.textgen.TextModel
Prepares the model to start a new token sequence.
StatelessFilter - Interface in net.siefkes.nlstego.predict
This interface filters which predictions should be stored in the stateless (global) model.
StegoCoder - Class in net.siefkes.nlstego.textgen
Base class that contains common code shared by the StegoEncoder and StegoDecoder classes.
StegoCoder(Configuration, TextModel) - Constructor for class net.siefkes.nlstego.textgen.StegoCoder
Creates a new instance.
StegoDecoder - Class in net.siefkes.nlstego.textgen
A stego decoder recovers the bit sequences hidden in stego texts.
StegoDecoder(Configuration, TextModel) - Constructor for class net.siefkes.nlstego.textgen.StegoDecoder
Creates a new instance.
StegoEncoder - Class in net.siefkes.nlstego.textgen
A stego encoder hides bit sequences into inconspicuous stego texts.
StegoEncoder(Configuration, TextModel) - Constructor for class net.siefkes.nlstego.textgen.StegoEncoder
Creates a new instance.

T

TextModel - Class in net.siefkes.nlstego.textgen
A text model that can be used to complete texts or to generate "typical" texts based a prediction model.
TextModel(Configuration) - Constructor for class net.siefkes.nlstego.textgen.TextModel
Creates a new instance.
TextTokenizer - Class in net.siefkes.nlstego.util
Splits a text into a sequence of tokens.
TextTokenizer(String[], String, CharSequence) - Constructor for class net.siefkes.nlstego.util.TextTokenizer
Creates a new instance.
TokenizerFactory - Class in net.siefkes.nlstego.util
Factory for creating TextTokenizers of different types.
TokenizerFactory() - Constructor for class net.siefkes.nlstego.util.TokenizerFactory
 
toString() - Method in class net.siefkes.nlstego.NLStego
Returns a string representation of this object.
toString() - Method in class net.siefkes.nlstego.predict.PPMFetchStats
Returns a String that represents the value of this object.
toString() - Method in class net.siefkes.nlstego.predict.PredictedToken
Returns a String that represents the value of this object.
toString() - Method in class net.siefkes.nlstego.predict.PredictionManager
Returns a String that represents the value of this object.
toString() - Method in class net.siefkes.nlstego.textgen.StegoCoder
Returns a string representation of this object.
toString() - Method in class net.siefkes.nlstego.textgen.TextModel
Returns a string representation of this object.
toString() - Method in class net.siefkes.nlstego.util.BitArray
Returns a string representation of this object.
toString() - Method in class net.siefkes.nlstego.util.ContentType
Returns a string representation of this object.
toString() - Method in class net.siefkes.nlstego.util.TextTokenizer
Returns a string representation of this object.
trailingWhitespaceCount(String) - Method in class net.siefkes.nlstego.util.TextTokenizer
Convenience method that counts the number of whitespace characters at the end of a string, according to the defined whitespace pattern.
train(CharSequence) - Method in class net.siefkes.nlstego.textgen.TextModel
Trains the prediction models from the provided string.
train(File) - Method in class net.siefkes.nlstego.textgen.TextModel
Trains the prediction models from the contents of a file.
train(Reader) - Method in class net.siefkes.nlstego.textgen.TextModel
Trains the prediction models from the contents of the provided reader.
train(String[], boolean) - Method in class net.siefkes.nlstego.textgen.TextModel
Trains the prediction models from an array of file paths, using the InOutUtils.listFileContents(String[], boolean) method to resolve file contents.
train(URL) - Method in class net.siefkes.nlstego.textgen.TextModel
Trains the prediction models from the contents of an URL.
transparentGet(Object) - Method in class net.siefkes.nlstego.util.ExtendedLRUMap
Returns the value to the specified key, without changing the LRU structure.
TRUE_CHAR - Static variable in class net.siefkes.nlstego.util.Util
Character representing the boolean value true: '+'.
tryToClose(InputStream) - Static method in class net.siefkes.nlstego.util.InOutUtils
Convenience method for closing an input stream.
tryToClose(OutputStream) - Static method in class net.siefkes.nlstego.util.InOutUtils
Convenience method for closing an output stream.
tryToClose(Reader) - Static method in class net.siefkes.nlstego.util.InOutUtils
Convenience method for closing a reader.
tryToClose(Writer) - Static method in class net.siefkes.nlstego.util.InOutUtils
Convenience method for closing a writer.

U

uncompress(byte[]) - Static method in class net.siefkes.nlstego.util.InOutUtils
Uncompresses data using GZip.
unmapKey(int) - Static method in class net.siefkes.nlstego.predict.FetchStats
Maps the key used to identify an item to a compact representation used for storing it in the FetchStats.
unregisterPredictionModel(FetchStats) - Method in class net.siefkes.nlstego.predict.PredictionManager
Unregisters a prediction model from this prediction manager.
updateState(String) - Method in class net.siefkes.nlstego.textgen.StegoCoder
Updates the state of a text model after choosing a token.
updateState(String, boolean) - Method in class net.siefkes.nlstego.textgen.TextModel
Updates the prediction models by feeding them the specified token.
userDir() - Static method in class net.siefkes.nlstego.util.InOutUtils
Returns the user's current working directory.
userHome() - Static method in class net.siefkes.nlstego.util.InOutUtils
Returns the user's home directory.
Util - Class in net.siefkes.nlstego.util
A static class that provides some utility constands and methods.

V

VERSION_NO - Static variable in class net.siefkes.nlstego.NLStego
The current version number of this software: "0.9-dev".
VerySimpleLog - Class in net.siefkes.nlstego.util
A extensioin of SimpleLog that works around a small bug in the superclass: it avoids printing the name and message of throwables twice.
VerySimpleLog(String) - Constructor for class net.siefkes.nlstego.util.VerySimpleLog
Construct a named instance of this Logger.
VerySimpleLog(String, PrintStream) - Constructor for class net.siefkes.nlstego.util.VerySimpleLog
Construct a named instance of this Logger.
VOID_TOKEN - Static variable in class net.siefkes.nlstego.textgen.TextModel
Pseudo-token to use when a token is expected but none is available (e.g., before the first token starting a text).

W

WHITESPACE_CONTROL_OTHER - Static variable in class net.siefkes.nlstego.util.TokenizerFactory
Pattern string capturing whitespace and control/other characters.

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

Copyright © 2003-2005 Christian Siefkes. All Rights Reserved.