Index

A B C D E F G H I M O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form

A

active - Variable in class eu.svjatoslav.commons.string.tokenizer.Terminator
Flag indicating whether this terminator is active.
addTerminator(Terminator) - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Adds a pre-configured terminator to this tokenizer.
addTerminator(Terminator.TerminationStrategy, String) - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Adds a terminator with a termination strategy and regex pattern.
addTerminator(Terminator.TerminationStrategy, String, String) - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Adds a terminator with a termination strategy, regex pattern, and group name.
append(String) - Method in class eu.svjatoslav.commons.string.String2
Appends text at the end of this string.
append(String, int) - Method in class eu.svjatoslav.commons.string.String2
Appends the given string multiple times.
appendWithSeparator(String, String) - Method in class eu.svjatoslav.commons.string.String2
Appends text with a separator, only adding the separator if the string is not empty.

B

BitInputStream - Class in eu.svjatoslav.commons.data
Reads individual bits from an input stream.
BitInputStream(InputStream) - Constructor for class eu.svjatoslav.commons.data.BitInputStream
Creates a new BitInputStream that reads bits from the specified input stream.
BitOutputStream - Class in eu.svjatoslav.commons.data
Writes individual bits to an output stream.
BitOutputStream(OutputStream) - Constructor for class eu.svjatoslav.commons.data.BitOutputStream
Creates a new BitOutputStream that writes bits to the specified output stream.
byteArrayToHex(byte[]) - Static method in class eu.svjatoslav.commons.data.HexConverter
Converts a byte array to an uppercase hexadecimal string.

C

clear() - Method in class eu.svjatoslav.commons.string.String2
Clears all characters from this string.
CommonPathResolver - Class in eu.svjatoslav.commons.file
Resolves common system paths and directories.
consumeIfNextToken(String) - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Consumes the next token if it matches the expected value.
contains(String, int) - Method in class eu.svjatoslav.commons.string.String2
Checks if a fragment appears at the specified position in this string.

D

deleteRecursively(File) - Static method in class eu.svjatoslav.commons.file.IOHelper
Deletes a file or directory recursively.
DROP - Enum constant in enum class eu.svjatoslav.commons.string.tokenizer.Terminator.TerminationStrategy
Drop the matched token silently without returning it.

E

enforceLength(int) - Method in class eu.svjatoslav.commons.string.String2
Adjusts this string to have exactly the specified length.
enlistRemainingTokens() - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Prints all remaining tokens for debugging purposes.
eu.svjatoslav.commons.data - package eu.svjatoslav.commons.data
Provides utility classes for binary data manipulation and conversion.
eu.svjatoslav.commons.file - package eu.svjatoslav.commons.file
Provides utility classes for file system operations and path handling.
eu.svjatoslav.commons.gui.dialog - package eu.svjatoslav.commons.gui.dialog
Provides Swing-based dialog components for graphical user interfaces.
eu.svjatoslav.commons.string - package eu.svjatoslav.commons.string
Provides utility classes for string manipulation and pattern matching.
eu.svjatoslav.commons.string.tokenizer - package eu.svjatoslav.commons.string.tokenizer
Provides a regex-based tokenizer for parsing structured text.
ExceptionDialog - Class in eu.svjatoslav.commons.gui.dialog
A graphical dialog for displaying exceptions with stack traces.
ExceptionDialog(Exception) - Constructor for class eu.svjatoslav.commons.gui.dialog.ExceptionDialog
Creates and displays an exception dialog for the given exception.
expectAndConsumeNextStringToken(String) - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Consumes the next token and verifies it matches the expected value.
expectAndConsumeNextTerminatorToken(Terminator) - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Consumes the next token and verifies it was matched by the expected terminator.

F

FilePathParser - Class in eu.svjatoslav.commons.file
Utility class for parsing file paths and extracting file metadata.
findTerminatorMatch() - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Finds a terminator that matches at the current position.
finishByte() - Method in class eu.svjatoslav.commons.data.BitOutputStream
Finishes writing the current incomplete byte to the output stream.

G

getFileContents(File) - Static method in class eu.svjatoslav.commons.file.IOHelper
Reads the entire contents of a file as a byte array.
getFileContentsAsString(File) - Static method in class eu.svjatoslav.commons.file.IOHelper
Reads the entire contents of a file as a UTF-8 encoded string.
getFileExtension(File) - Static method in class eu.svjatoslav.commons.file.FilePathParser
Returns the file extension from a File object.
getFileExtension(String) - Static method in class eu.svjatoslav.commons.file.FilePathParser
Returns the file extension from a file name string.
getFileNameWithoutExtension(File) - Static method in class eu.svjatoslav.commons.file.FilePathParser
Returns the file name without its extension from a File object.
getFileNameWithoutExtension(String) - Static method in class eu.svjatoslav.commons.file.FilePathParser
Returns the file name without its extension from a file name string.
getFileSizeDescription(long) - Static method in class eu.svjatoslav.commons.file.FilePathParser
Returns a human-readable description of a file size using binary units.
getGroups(String, String) - Static method in class eu.svjatoslav.commons.string.String2
Extracts regex capture groups from a string.
getHomeDirectory() - Static method in class eu.svjatoslav.commons.file.CommonPathResolver
Returns the current user's home directory.
getLength() - Method in class eu.svjatoslav.commons.string.String2
Returns the current length of this string.
getNextToken() - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Returns the next token from the source string.
getRegExpGroups() - Method in class eu.svjatoslav.commons.string.tokenizer.TokenizerMatch
Extracts regex capture groups from this match.
getSubString(int, int) - Method in class eu.svjatoslav.commons.string.String2
Returns a substring of this string.
getTokenizer() - Method in class eu.svjatoslav.commons.string.tokenizer.TokenizerMatch
Returns the tokenizer that produced this match.
GlobMatcher - Class in eu.svjatoslav.commons.string
Matches strings against glob-style wildcard patterns.
group - Variable in class eu.svjatoslav.commons.string.tokenizer.Terminator
An optional group name for categorizing this token type.

H

hasMoreContent() - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Checks if there is more content to read.
hasPrefix(String) - Method in class eu.svjatoslav.commons.string.String2
Checks if this string starts with the specified prefix.
hasSuffix(String) - Method in class eu.svjatoslav.commons.string.String2
Checks if this string ends with the specified suffix.
HexConverter - Class in eu.svjatoslav.commons.data
Converts byte arrays to hexadecimal string representation.

I

InvalidSyntaxException - Exception Class in eu.svjatoslav.commons.string.tokenizer
Exception thrown when token parsing encounters unexpected content.
InvalidSyntaxException(String) - Constructor for exception class eu.svjatoslav.commons.string.tokenizer.InvalidSyntaxException
Creates a new InvalidSyntaxException with a descriptive message.
IOHelper - Class in eu.svjatoslav.commons.file
Utility class for common file system operations.
isEmpty() - Method in class eu.svjatoslav.commons.string.String2
Checks if this string is empty.
isGroup(String) - Method in class eu.svjatoslav.commons.string.tokenizer.TokenizerMatch
Checks if this token belongs to the specified group.

M

main(String[]) - Static method in class eu.svjatoslav.commons.gui.dialog.ExceptionDialog
Main method for testing the exception dialog.
match(String, int) - Method in class eu.svjatoslav.commons.string.tokenizer.Terminator
Creates a matcher for this terminator at the specified position.
match(String, String) - Static method in class eu.svjatoslav.commons.string.GlobMatcher
Tests if an input string matches a wildcard expression.
matcher - Variable in class eu.svjatoslav.commons.string.tokenizer.TokenizerMatch
The regex Matcher used to identify this token.

O

overwriteFileIfContentDiffers(File, byte[]) - Static method in class eu.svjatoslav.commons.file.IOHelper
Compares new content with existing file content and overwrites only if different.

P

pattern - Variable in class eu.svjatoslav.commons.string.tokenizer.Terminator
The compiled regex pattern used for matching.
peekExpectNoneOf(String...) - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Verifies the next token is NOT one of the specified possibilities.
peekIsOneOf(String...) - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Checks if the next token is one of the specified possibilities.
peekNextToken() - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Returns the next token without consuming it.
prepend(String) - Method in class eu.svjatoslav.commons.string.String2
Inserts text at the beginning of this string.
PRESERVE - Enum constant in enum class eu.svjatoslav.commons.string.tokenizer.Terminator.TerminationStrategy
Preserve the matched token and return it for processing.

R

readBits(int) - Method in class eu.svjatoslav.commons.data.BitInputStream
Reads the specified number of bits from the input stream.
repeat(int) - Method in class eu.svjatoslav.commons.string.String2
Repeats the current string content the specified number of times.

S

saveToFile(File, byte[]) - Static method in class eu.svjatoslav.commons.file.IOHelper
Saves byte content to a file, overwriting any existing content.
saveToFile(File, String) - Static method in class eu.svjatoslav.commons.file.IOHelper
Saves string content to a file using UTF-8 encoding, overwriting any existing content.
setSource(String) - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Sets or replaces the source string to tokenize.
showException(Exception) - Method in class eu.svjatoslav.commons.gui.dialog.ExceptionDialog
Displays the exception in a new JFrame window.
skipUntilDataEnd() - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Skips to the end of the source string without consuming tokens.
storeBits(int, int) - Method in class eu.svjatoslav.commons.data.BitOutputStream
Writes the specified number of bits from the data value to the output stream.
String2 - Class in eu.svjatoslav.commons.string
A mutable string builder optimized for prefix and suffix operations.
String2() - Constructor for class eu.svjatoslav.commons.string.String2
Creates an empty String2.
String2(String) - Constructor for class eu.svjatoslav.commons.string.String2
Creates a new String2 initialized with the given value.

T

termination - Variable in class eu.svjatoslav.commons.string.tokenizer.Terminator
The strategy for handling matched tokens.
terminator - Variable in class eu.svjatoslav.commons.string.tokenizer.TokenizerMatch
The Terminator that identified this token.
Terminator - Class in eu.svjatoslav.commons.string.tokenizer
Defines a token boundary using a regular expression pattern.
Terminator(Terminator.TerminationStrategy, String, String) - Constructor for class eu.svjatoslav.commons.string.tokenizer.Terminator
Creates a new terminator with the specified configuration.
Terminator.TerminationStrategy - Enum Class in eu.svjatoslav.commons.string.tokenizer
Defines how matched tokens are handled by the tokenizer.
token - Variable in class eu.svjatoslav.commons.string.tokenizer.TokenizerMatch
The text content of the matched token.
Tokenizer - Class in eu.svjatoslav.commons.string.tokenizer
A regex-based tokenizer for parsing structured text into tokens.
Tokenizer() - Constructor for class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Creates an empty tokenizer without a source string.
Tokenizer(String) - Constructor for class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Creates a new tokenizer for the specified source string.
TokenizerMatch - Class in eu.svjatoslav.commons.string.tokenizer
Represents a matched token from the tokenizer.
TokenizerMatch(String, Terminator, Matcher, Tokenizer) - Constructor for class eu.svjatoslav.commons.string.tokenizer.TokenizerMatch
Creates a new TokenizerMatch with all components.
toString() - Method in class eu.svjatoslav.commons.string.String2
Returns the string content as a standard Java String.
toString() - Method in class eu.svjatoslav.commons.string.tokenizer.Terminator
Returns a string representation of this terminator.
toString() - Method in class eu.svjatoslav.commons.string.tokenizer.TokenizerMatch
Returns a detailed string representation for debugging.
trimPrefix(int) - Method in class eu.svjatoslav.commons.string.String2
Removes the specified number of characters from the beginning of this string.
trimPrefixIfExists(String) - Method in class eu.svjatoslav.commons.string.String2
Removes the specified prefix if this string starts with it.
trimSuffix(int) - Method in class eu.svjatoslav.commons.string.String2
Removes the specified number of characters from the end of this string.
trimSuffixIfExists(String) - Method in class eu.svjatoslav.commons.string.String2
Removes the specified suffix if this string ends with it.

U

unreadToken() - Method in class eu.svjatoslav.commons.string.tokenizer.Tokenizer
Unreads the most recently consumed token.

V

valueOf(String) - Static method in enum class eu.svjatoslav.commons.string.tokenizer.Terminator.TerminationStrategy
Returns the enum constant of this class with the specified name.
values() - Static method in enum class eu.svjatoslav.commons.string.tokenizer.Terminator.TerminationStrategy
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D E F G H I M O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form