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

A

accept(IdentValue) - Method in class org.sw4j.tool.barcode.random.generator.BarcodeWriter
Generate the barcode for the given ident and configured barcode.

B

BarcodeWriter - Class in org.sw4j.tool.barcode.random.generator
This is a Consumer for RandomIdent which generates one barcode for a RandomIdent.
BarcodeWriter(CodeConfig, CodeData) - Constructor for class org.sw4j.tool.barcode.random.generator.BarcodeWriter
Create a new instance with the given barcode config and output factories.
Base58 - Class in org.sw4j.tool.barcode.random.coder
This utility class implements a base58 encoding with the alphabet from bitcoin.
Base58Decoder - Class in org.sw4j.tool.barcode.random.decoder.impl
This class decodes a base58 string as byte array.
Base58Decoder() - Constructor for class org.sw4j.tool.barcode.random.decoder.impl.Base58Decoder
The default constructor.
Base58Encoder - Class in org.sw4j.tool.barcode.random.encoder.impl
This class encodes a byte array as base58 string.
Base58Encoder() - Constructor for class org.sw4j.tool.barcode.random.encoder.impl.Base58Encoder
The default constructor.
Base64Decoder - Class in org.sw4j.tool.barcode.random.decoder.impl
This class decodes a base64 string as byte array.
Base64Decoder() - Constructor for class org.sw4j.tool.barcode.random.decoder.impl.Base64Decoder
The default constructor.
Base64Encoder - Class in org.sw4j.tool.barcode.random.encoder.impl
This class encodes a byte array as base64 string.
Base64Encoder() - Constructor for class org.sw4j.tool.barcode.random.encoder.impl.Base64Encoder
The default constructor.
build() - Method in class org.sw4j.tool.barcode.random.config.CodeConfig.Builder
Build a new CodeConfig with the parameters set.
build() - Method in class org.sw4j.tool.barcode.random.config.Config.Builder
Build a new Config with the parameters set.
build() - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig.Builder
 
build() - Method in class org.sw4j.tool.barcode.random.config.FileConfig.Builder
Build a new FileConfig with the parameters set.
build() - Method in class org.sw4j.tool.barcode.random.config.GenerationConfig.Builder
Build a new RandomConfig with the parameters set.
build() - Method in class org.sw4j.tool.barcode.random.config.OutputConfig.Builder
Build a new OutputConfig with the parameters set.
builder() - Static method in class org.sw4j.tool.barcode.random.config.CodeConfig
Return a Builder that can be used to build a config.
Builder() - Constructor for class org.sw4j.tool.barcode.random.config.CodeConfig.Builder
Create a new Builder.
builder() - Static method in class org.sw4j.tool.barcode.random.config.Config
Return a Builder that can be used to build a config.
Builder() - Constructor for class org.sw4j.tool.barcode.random.config.Config.Builder
Create a new Builder.
builder() - Static method in class org.sw4j.tool.barcode.random.config.EncodingConfig
 
Builder() - Constructor for class org.sw4j.tool.barcode.random.config.EncodingConfig.Builder
 
builder() - Static method in class org.sw4j.tool.barcode.random.config.FileConfig
Return a Builder that can be used to build a config.
Builder() - Constructor for class org.sw4j.tool.barcode.random.config.FileConfig.Builder
Create a new Builder.
builder() - Static method in class org.sw4j.tool.barcode.random.config.GenerationConfig
Return a Builder that can be used to build a config.
Builder() - Constructor for class org.sw4j.tool.barcode.random.config.GenerationConfig.Builder
Create a new Builder.
builder() - Static method in class org.sw4j.tool.barcode.random.config.OutputConfig
Return a Builder that can be used to build a config.
Builder() - Constructor for class org.sw4j.tool.barcode.random.config.OutputConfig.Builder
Create a new Builder.
ByteArrayDecoder - Class in org.sw4j.tool.barcode.random.decoder
This class is an interface for new Decoders (e.g.
ByteArrayDecoder() - Constructor for class org.sw4j.tool.barcode.random.decoder.ByteArrayDecoder
 
ByteArrayEncoder - Class in org.sw4j.tool.barcode.random.encoder
This class is an interface for new Encoders (e.g.
ByteArrayEncoder() - Constructor for class org.sw4j.tool.barcode.random.encoder.ByteArrayEncoder
 

C

CodeConfig - Class in org.sw4j.tool.barcode.random.config
This class configures a concrete code to generate.
CodeConfig(String, String, String, String, EncodingConfig, String) - Constructor for class org.sw4j.tool.barcode.random.config.CodeConfig
Create a new CodeConfig object with the given parameters.
CodeConfig.Builder - Class in org.sw4j.tool.barcode.random.config
This class is a Builder to build a CodeConfig programmatically.
CodeData - Interface in org.sw4j.tool.barcode.random.codedata
This interface is an abstraction for the application to be able to read different input and output formats (e.g.
CodeGenerator - Class in org.sw4j.tool.barcode.random.generator
This class takes the configuration (from the package org.sw4j.tool.barcode.random.config) and uses this configuration to generate encoded random numbers and barcodes.
CodeGenerator(GenerationConfig, CodeData) - Constructor for class org.sw4j.tool.barcode.random.generator.CodeGenerator
The constructor for a new CodeGenerator.
CodeGenerator(GenerationConfig, CodeData, Random) - Constructor for class org.sw4j.tool.barcode.random.generator.CodeGenerator
The constructor for a new CodeGenerator.
CodeType - Enum in org.sw4j.tool.barcode.random.config
This enum enumerates all available barcode types that are usable in the application.
Config - Class in org.sw4j.tool.barcode.random.config
The top level class for configuring the whole application.
Config(FileConfig, OutputConfig, GenerationConfig, GenerationConfig) - Constructor for class org.sw4j.tool.barcode.random.config.Config
Create a new Config with the given part configurations.
Config.Builder - Class in org.sw4j.tool.barcode.random.config
This class is a Builder to build a Config programmatically.
convertCodes(Map<String, String>, EncodingConfig, Set<EncodingConfig>) - Method in class org.sw4j.tool.barcode.random.generator.CodeGenerator
Create the encoded representation for all inputValues.
createCodes() - Method in class org.sw4j.tool.barcode.random.generator.CodeGenerator
Create the random numbers (and encoded representations) for the idents and writes the codes to the output csv file.
createCodes(Collection<String>, Set<EncodingConfig>) - Method in class org.sw4j.tool.barcode.random.generator.CodeGenerator
Create random values for all inputValues.

D

decode(String) - Static method in class org.sw4j.tool.barcode.random.coder.Base58
Convert the Base58 string into a byte array.
decode(String) - Method in class org.sw4j.tool.barcode.random.decoder.ByteArrayDecoder
Decode the given data into the encoding that is supported by the encoder.
decode(String) - Method in class org.sw4j.tool.barcode.random.decoder.impl.Base58Decoder
Return the base58 data decoded as byte array.
decode(String) - Method in class org.sw4j.tool.barcode.random.decoder.impl.Base64Decoder
Return the base64 string decoded as byte array.
decode(String) - Method in class org.sw4j.tool.barcode.random.decoder.impl.HexDecoder
Return the hex string decoded as byte array.
divide(byte[], int, int) - Static method in class org.sw4j.tool.barcode.random.coder.Base58
A helper method to divide the dividend (in the byte array) by a divisor.

E

encode(byte[]) - Static method in class org.sw4j.tool.barcode.random.coder.Base58
Convert the data into a Base58 string.
encode(byte[]) - Method in class org.sw4j.tool.barcode.random.encoder.ByteArrayEncoder
Encode the given byte array data into the encoding that is supported by the encoder.
encode(byte[]) - Method in class org.sw4j.tool.barcode.random.encoder.impl.Base58Encoder
Return the byte array encoded as base58.
encode(byte[]) - Method in class org.sw4j.tool.barcode.random.encoder.impl.Base64Encoder
Return the byte array encoded as base64.
encode(byte[]) - Method in class org.sw4j.tool.barcode.random.encoder.impl.HexEncoder
Return the byte array encoded as hex.
EncodingConfig - Class in org.sw4j.tool.barcode.random.config
This class configures a encoding for a code to generate.
EncodingConfig(String, Integer, Character) - Constructor for class org.sw4j.tool.barcode.random.config.EncodingConfig
Create a new EncodingConfig with the given parameters.
EncodingConfig.Builder - Class in org.sw4j.tool.barcode.random.config
 
equals(Object) - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig
 

F

FileCodeData - Class in org.sw4j.tool.barcode.random.codedata
This is a concrete implementation of the CodeData interface that handles files for input and output.
FileCodeData(Config) - Constructor for class org.sw4j.tool.barcode.random.codedata.FileCodeData
Create a new FileCodeData with the given configuration.
FileConfig - Class in org.sw4j.tool.barcode.random.config
This class configures a file.
FileConfig(String) - Constructor for class org.sw4j.tool.barcode.random.config.FileConfig
Create a new FileConfig with the given file name.
FileConfig.Builder - Class in org.sw4j.tool.barcode.random.config
This class is a Builder to build a FileConfig programmatically.
forEncoding(String) - Static method in class org.sw4j.tool.barcode.random.decoder.ByteArrayDecoder
Return an decoder for the given encoding (e.g.
forEncoding(String) - Static method in class org.sw4j.tool.barcode.random.encoder.ByteArrayEncoder
Return an encoder for the given encoding (e.g.

G

GenerationConfig - Class in org.sw4j.tool.barcode.random.config
This class configures the generation and presentation.
GenerationConfig(int, EncodingConfig, List<CodeConfig>, List<EncodingConfig>) - Constructor for class org.sw4j.tool.barcode.random.config.GenerationConfig
Create a new GenerationConfig with the given random size (in bits) or source encoding, barcode formats and additional representations.
GenerationConfig.Builder - Class in org.sw4j.tool.barcode.random.config
This class is a Builder to build a RandomConfig programmatically.
getCode() - Method in class org.sw4j.tool.barcode.random.input.Predefined
The code.
getCodes() - Method in class org.sw4j.tool.barcode.random.config.GenerationConfig
Return the configurations of the barcodes to create.
getEncoded(EncodingConfig) - Method in interface org.sw4j.tool.barcode.random.generator.IdentValue
Return the value in the given encoding.
getEncoded(EncodingConfig) - Method in class org.sw4j.tool.barcode.random.generator.PredefinedIdent
Return the random number in the given encoding.
getEncoded(EncodingConfig) - Method in class org.sw4j.tool.barcode.random.generator.RandomIdent
Return the random number in the given encoding.
getEncoding() - Method in class org.sw4j.tool.barcode.random.config.CodeConfig
Return the encoding of the random number in the barcode.
getEncoding() - Method in class org.sw4j.tool.barcode.random.config.GenerationConfig
Return the encoding of the predefined values.
getEncodings() - Method in class org.sw4j.tool.barcode.random.config.GenerationConfig
Return the configurations of the additional encoding of the random number to create.
getErrorCorrection() - Method in class org.sw4j.tool.barcode.random.config.CodeConfig
Return the error correction of the barcode.
getFile() - Method in class org.sw4j.tool.barcode.random.config.OutputConfig
Return the output csv file.
getFiletype() - Method in class org.sw4j.tool.barcode.random.config.CodeConfig
Return the file type of the barcode.
getFolder() - Method in class org.sw4j.tool.barcode.random.config.OutputConfig
Return the folder of the output files.
getFormat() - Method in enum org.sw4j.tool.barcode.random.config.CodeType
Return the ZXing barcode format of the barcode (e.g.
getHeight() - Method in class org.sw4j.tool.barcode.random.config.CodeConfig
Return the height of the barcode.
getIdent() - Method in interface org.sw4j.tool.barcode.random.generator.IdentValue
Return the ident number.
getIdent() - Method in class org.sw4j.tool.barcode.random.generator.PredefinedIdent
Return the ident number.
getIdent() - Method in class org.sw4j.tool.barcode.random.generator.RandomIdent
Return the ident number.
getIdent() - Method in class org.sw4j.tool.barcode.random.input.Identifier
The identifiers value.
getIdent() - Method in class org.sw4j.tool.barcode.random.input.Predefined
The identifiers value.
getInput() - Method in interface org.sw4j.tool.barcode.random.codedata.CodeData
Returns an input stream for reading the source data.
getInput() - Method in class org.sw4j.tool.barcode.random.codedata.FileCodeData
Create a new FileInputStream for the input file given in the configuration.
getInput() - Method in class org.sw4j.tool.barcode.random.config.Config
Return the input file configuration.
getName() - Method in class org.sw4j.tool.barcode.random.config.FileConfig
The name of the file configured.
getOutput() - Method in interface org.sw4j.tool.barcode.random.codedata.CodeData
Returns an output stream for writing the output csv data.
getOutput() - Method in class org.sw4j.tool.barcode.random.codedata.FileCodeData
Create a new FileOutputStream for writing the csv output file.
getOutput() - Method in class org.sw4j.tool.barcode.random.config.Config
Return the output file(s) configuration.
getOutputForIdent(CodeType, EncodingConfig, String, String) - Method in interface org.sw4j.tool.barcode.random.codedata.CodeData
Returns an individual output stream for writing the barcode for the given identifier and format.
getOutputForIdent(CodeType, EncodingConfig, String, String) - Method in class org.sw4j.tool.barcode.random.codedata.FileCodeData
Create a new FileOutputStream for writing a barcode.
getPredefined() - Method in class org.sw4j.tool.barcode.random.config.Config
Return the predefined presentation configuration.
getRandom() - Method in class org.sw4j.tool.barcode.random.config.Config
Return the random generation and presentation configuration.
getSepChar() - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig
 
getSepCount() - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig
 
getSize() - Method in class org.sw4j.tool.barcode.random.config.GenerationConfig
Return the size of the random number to be created.
getType() - Method in class org.sw4j.tool.barcode.random.config.CodeConfig
Return the type of the barcode (e.g.
getType() - Method in enum org.sw4j.tool.barcode.random.config.CodeType
Return the type of the barcode (e.g.
getType() - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig
 
getUrl() - Method in class org.sw4j.tool.barcode.random.config.CodeConfig
Return the URL (or text) of the barcode with the placeholder {code} replaced by the encoded random number.
getValue() - Method in interface org.sw4j.tool.barcode.random.generator.IdentValue
Return the raw value.
getValue() - Method in class org.sw4j.tool.barcode.random.generator.PredefinedIdent
Return the raw random number generated.
getValue() - Method in class org.sw4j.tool.barcode.random.generator.RandomIdent
Return the raw random number generated.
getWidth() - Method in class org.sw4j.tool.barcode.random.config.CodeConfig
Return the width of the barcode.

H

hashCode() - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig
 
HexDecoder - Class in org.sw4j.tool.barcode.random.decoder.impl
This class decodes a hex string as byte array.
HexDecoder() - Constructor for class org.sw4j.tool.barcode.random.decoder.impl.HexDecoder
The default constructor.
HexEncoder - Class in org.sw4j.tool.barcode.random.encoder.impl
This class encodes a byte array as hex string.
HexEncoder() - Constructor for class org.sw4j.tool.barcode.random.encoder.impl.HexEncoder
The default constructor.

I

Identifier - Class in org.sw4j.tool.barcode.random.input
This class maps the input identifiers to Java objects.
Identifier(String) - Constructor for class org.sw4j.tool.barcode.random.input.Identifier
Create a new Identifier with the given ident.
IdentValue - Interface in org.sw4j.tool.barcode.random.generator
This interface defined a single ident with the encoded representations.

L

lookup(String) - Static method in enum org.sw4j.tool.barcode.random.config.CodeType
Return an enum by doing a lookup with the type string (e.g.

M

Main - Class in org.sw4j.tool.barcode.random
This is the main class of the random barcode generator.
Main() - Constructor for class org.sw4j.tool.barcode.random.Main
The sole constructor of this class.
main(String...) - Static method in class org.sw4j.tool.barcode.random.Main
The main method to start the application.

O

org.sw4j.tool.barcode.random - package org.sw4j.tool.barcode.random
The main package of the random barcode creator.
org.sw4j.tool.barcode.random.codedata - package org.sw4j.tool.barcode.random.codedata
This package contains an abstraction for the input and output of the code generation.
org.sw4j.tool.barcode.random.coder - package org.sw4j.tool.barcode.random.coder
This package contains all coders for encodings (like base58) that are not included in JSE.
org.sw4j.tool.barcode.random.config - package org.sw4j.tool.barcode.random.config
This package contains all classes needed to configure the application.
org.sw4j.tool.barcode.random.decoder - package org.sw4j.tool.barcode.random.decoder
This package is the base for a pluggable decoder architecture.
org.sw4j.tool.barcode.random.decoder.impl - package org.sw4j.tool.barcode.random.decoder.impl
This package defines some implementations for the ByteArrayDecoder.
org.sw4j.tool.barcode.random.encoder - package org.sw4j.tool.barcode.random.encoder
This package is the base for a pluggable encoder architecture.
org.sw4j.tool.barcode.random.encoder.impl - package org.sw4j.tool.barcode.random.encoder.impl
This package defines some implementations for the ByteArrayEncoder.
org.sw4j.tool.barcode.random.generator - package org.sw4j.tool.barcode.random.generator
This package contains the generator of the barcodes and encoded random numbers.
org.sw4j.tool.barcode.random.input - package org.sw4j.tool.barcode.random.input
This package contains the input mapping.
OutputConfig - Class in org.sw4j.tool.barcode.random.config
This class configures the output file(s).
OutputConfig(String, FileConfig) - Constructor for class org.sw4j.tool.barcode.random.config.OutputConfig
Create a new OutputConfig with the given file name.
OutputConfig.Builder - Class in org.sw4j.tool.barcode.random.config
This class is a Builder to build a OutputConfig programmatically.

P

Predefined - Class in org.sw4j.tool.barcode.random.input
This class maps the input identifiers to Java objects.
Predefined(String, String) - Constructor for class org.sw4j.tool.barcode.random.input.Predefined
Create a new Predefined with the given ident and code.
PredefinedIdent - Class in org.sw4j.tool.barcode.random.generator
This class contains the value and the encoded representations for a single ident.
PredefinedIdent(String, String, EncodingConfig, Set<EncodingConfig>) - Constructor for class org.sw4j.tool.barcode.random.generator.PredefinedIdent
Create a new PredefinedIdent and the value for the ident.

R

RandomIdent - Class in org.sw4j.tool.barcode.random.generator
This class contains the random number and the encoded representations for a single ident.
RandomIdent(String, int, Random, Set<EncodingConfig>) - Constructor for class org.sw4j.tool.barcode.random.generator.RandomIdent
Create a new RandomIdent and the random number for the ident.
readYamlConfig(File) - Static method in class org.sw4j.tool.barcode.random.config.Config
A factory method to create a configuration from a YAML file.
run(String...) - Method in class org.sw4j.tool.barcode.random.Main
Run the application with the given command line arguments.

S

setCodes(List<CodeConfig>) - Method in class org.sw4j.tool.barcode.random.config.GenerationConfig.Builder
Set the configurations of the barcodes generated.
setEncoding(EncodingConfig) - Method in class org.sw4j.tool.barcode.random.config.CodeConfig.Builder
Set the encoding of the random number in the barcode.
setEncoding(EncodingConfig) - Method in class org.sw4j.tool.barcode.random.config.GenerationConfig.Builder
Set the encoding of the predefined values.
setEncodings(List<EncodingConfig>) - Method in class org.sw4j.tool.barcode.random.config.GenerationConfig.Builder
Set the configurations of the additional encodings generated.
setErrorCorrection(String) - Method in class org.sw4j.tool.barcode.random.config.CodeConfig.Builder
Set the error correction of the barcode.
setFile(FileConfig) - Method in class org.sw4j.tool.barcode.random.config.OutputConfig.Builder
Set the file of the output csv file.
setFiletype(String) - Method in class org.sw4j.tool.barcode.random.config.CodeConfig.Builder
Set the file type of the barcode.
setFolder(String) - Method in class org.sw4j.tool.barcode.random.config.OutputConfig.Builder
Set the folder of the output files.
setHeight(int) - Method in class org.sw4j.tool.barcode.random.config.CodeConfig.Builder
Set the height of the barcode.
setInput(FileConfig) - Method in class org.sw4j.tool.barcode.random.config.Config.Builder
Set the input file configuration.
setName(String) - Method in class org.sw4j.tool.barcode.random.config.FileConfig.Builder
Set the name of the file.
setOutput(OutputConfig) - Method in class org.sw4j.tool.barcode.random.config.Config.Builder
Set the output file(s) configuration.
setRandom(GenerationConfig) - Method in class org.sw4j.tool.barcode.random.config.Config.Builder
Set the random generation and presentation configuration.
setSepChar(Character) - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig.Builder
 
setSepCount(Integer) - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig.Builder
 
setSize(int) - Method in class org.sw4j.tool.barcode.random.config.GenerationConfig.Builder
Set the size (in bits) of the random number generator.
setType(String) - Method in class org.sw4j.tool.barcode.random.config.CodeConfig.Builder
Set the type of the barcode.
setType(String) - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig.Builder
 
setUrl(String) - Method in class org.sw4j.tool.barcode.random.config.CodeConfig.Builder
Set the URL (or text) of the barcode.
setWidth(int) - Method in class org.sw4j.tool.barcode.random.config.CodeConfig.Builder
Set the width of the barcode.
supports(String) - Method in class org.sw4j.tool.barcode.random.decoder.ByteArrayDecoder
For concrete decoders this method should return true if the given encoding is supported.
supports(String) - Method in class org.sw4j.tool.barcode.random.decoder.impl.Base58Decoder
Return true if the encoding is base58 (case insensitive).
supports(String) - Method in class org.sw4j.tool.barcode.random.decoder.impl.Base64Decoder
Return true if the encoding is base64 (case insensitive).
supports(String) - Method in class org.sw4j.tool.barcode.random.decoder.impl.HexDecoder
Return true if the encoding is hex (case insensitive).
supports(String) - Method in class org.sw4j.tool.barcode.random.encoder.ByteArrayEncoder
For concrete encoders this method should return true if the given encoding is supported.
supports(String) - Method in class org.sw4j.tool.barcode.random.encoder.impl.Base58Encoder
Return true if the encoding is base58 (case insensitive).
supports(String) - Method in class org.sw4j.tool.barcode.random.encoder.impl.Base64Encoder
Return true if the encoding is base64 (case insensitive).
supports(String) - Method in class org.sw4j.tool.barcode.random.encoder.impl.HexEncoder
Return true if the encoding is hex (case insensitive).

T

toString() - Method in class org.sw4j.tool.barcode.random.config.EncodingConfig
 
TYPE - Static variable in class org.sw4j.tool.barcode.random.decoder.impl.Base58Decoder
The encoding name as constant.
TYPE - Static variable in class org.sw4j.tool.barcode.random.decoder.impl.Base64Decoder
The encoding name as constant.
TYPE - Static variable in class org.sw4j.tool.barcode.random.decoder.impl.HexDecoder
The encoding name as constant.
TYPE - Static variable in class org.sw4j.tool.barcode.random.encoder.impl.Base58Encoder
The encoding name as constant.
TYPE - Static variable in class org.sw4j.tool.barcode.random.encoder.impl.Base64Encoder
The encoding name as constant.
TYPE - Static variable in class org.sw4j.tool.barcode.random.encoder.impl.HexEncoder
The encoding name as constant.

V

valueOf(String) - Static method in enum org.sw4j.tool.barcode.random.config.CodeType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.sw4j.tool.barcode.random.config.CodeType
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I L M O P R S T V 
Skip navigation links

Copyright © 2020 sw4j.org. All rights reserved.