| Package | Description |
|---|---|
| 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.config |
This package contains all classes needed to configure the application.
|
| org.sw4j.tool.barcode.random.generator |
This package contains the generator of the barcodes and encoded random numbers.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
FileCodeData.getOutputForIdent(CodeType type,
EncodingConfig format,
String ident,
String suffix)
Create a new
FileOutputStream for writing a barcode. |
OutputStream |
CodeData.getOutputForIdent(CodeType type,
EncodingConfig format,
String ident,
String suffix)
Returns an individual output stream for writing the barcode for the given identifier and format.
|
| Modifier and Type | Method and Description |
|---|---|
EncodingConfig |
EncodingConfig.Builder.build() |
EncodingConfig |
GenerationConfig.getEncoding()
Return the encoding of the predefined values.
|
EncodingConfig |
CodeConfig.getEncoding()
Return the encoding of the random number in the barcode.
|
| Modifier and Type | Method and Description |
|---|---|
List<EncodingConfig> |
GenerationConfig.getEncodings()
Return the configurations of the additional encoding of the random number to create.
|
| Modifier and Type | Method and Description |
|---|---|
GenerationConfig.Builder |
GenerationConfig.Builder.setEncoding(EncodingConfig encoding)
Set the encoding of the predefined values.
|
CodeConfig.Builder |
CodeConfig.Builder.setEncoding(EncodingConfig encoding)
Set the encoding of the random number in the barcode.
|
| Modifier and Type | Method and Description |
|---|---|
GenerationConfig.Builder |
GenerationConfig.Builder.setEncodings(List<EncodingConfig> encodings)
Set the configurations of the additional encodings generated.
|
| Constructor and Description |
|---|
CodeConfig(String type,
String size,
String errorCorrection,
String filetype,
EncodingConfig encoding,
String url)
Create a new
CodeConfig object with the given parameters. |
GenerationConfig(int size,
EncodingConfig encoding,
List<CodeConfig> codes,
List<EncodingConfig> encodings)
Create a new
GenerationConfig with the given random size (in bits) or source encoding, barcode formats
and additional representations. |
| Constructor and Description |
|---|
GenerationConfig(int size,
EncodingConfig encoding,
List<CodeConfig> codes,
List<EncodingConfig> encodings)
Create a new
GenerationConfig with the given random size (in bits) or source encoding, barcode formats
and additional representations. |
| Modifier and Type | Method and Description |
|---|---|
Set<IdentValue> |
CodeGenerator.convertCodes(Map<String,String> inputValues,
EncodingConfig encoding,
Set<EncodingConfig> encodings)
Create the encoded representation for all
inputValues. |
String |
PredefinedIdent.getEncoded(EncodingConfig encoding)
Return the random number in the given
encoding. |
String |
RandomIdent.getEncoded(EncodingConfig encoding)
Return the random number in the given
encoding. |
String |
IdentValue.getEncoded(EncodingConfig encoding)
Return the value in the given
encoding. |
| Modifier and Type | Method and Description |
|---|---|
Set<IdentValue> |
CodeGenerator.convertCodes(Map<String,String> inputValues,
EncodingConfig encoding,
Set<EncodingConfig> encodings)
Create the encoded representation for all
inputValues. |
Set<IdentValue> |
CodeGenerator.createCodes(Collection<String> inputValues,
Set<EncodingConfig> encodings)
Create random values for all
inputValues. |
| Constructor and Description |
|---|
PredefinedIdent(String ident,
String value,
EncodingConfig encoding,
Set<EncodingConfig> encodings)
Create a new
PredefinedIdent and the value for the ident. |
| Constructor and Description |
|---|
PredefinedIdent(String ident,
String value,
EncodingConfig encoding,
Set<EncodingConfig> encodings)
Create a new
PredefinedIdent and the value for the ident. |
RandomIdent(String ident,
int randomSize,
Random rng,
Set<EncodingConfig> encodings)
Create a new
RandomIdent and the random number for the ident. |
Copyright © 2020 sw4j.org. All rights reserved.