Class Instance
- java.lang.Object
-
- org.omegat.filters2.Instance
-
- All Implemented Interfaces:
java.io.Serializable
public class Instance extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Instance()
Creates a new Filter Instance, uninitialized.Instance(java.lang.String sourceFilenameMask)
Creates a new Filter Instance with only source file mask specified, and default values for everything else.Instance(java.lang.String sourceFilenameMask, java.lang.String sourceEncoding)
Creates a new Filter Instance with source file mask and source encoding specified, and having a default target encoding and target filename pattern.Instance(java.lang.String sourceFilenameMask, java.lang.String sourceEncoding, java.lang.String targetEncoding)
Creates a new Filter Instance with source file mask and two encodings specified, and having a default target filename pattern.Instance(java.lang.String sourceFilenameMask, java.lang.String sourceEncoding, java.lang.String targetEncoding, java.lang.String targetFilenamePattern)
Creates a new instance of FilterInstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSourceEncoding()
java.lang.String
getSourceEncodingHuman()
java.lang.String
getSourceFilenameMask()
java.lang.String
getTargetEncoding()
java.lang.String
getTargetEncodingHuman()
java.lang.String
getTargetFilenamePattern()
void
setSourceEncoding(java.lang.String sourceEncoding)
void
setSourceFilenameMask(java.lang.String sourceFilenameMask)
void
setTargetEncoding(java.lang.String targetEncoding)
void
setTargetFilenamePattern(java.lang.String targetFilenamePattern)
-
-
-
Constructor Detail
-
Instance
public Instance(java.lang.String sourceFilenameMask, java.lang.String sourceEncoding, java.lang.String targetEncoding, java.lang.String targetFilenamePattern)
Creates a new instance of FilterInstance.Value
null
for source and target encoding means that the filter selects encodings automatically.Output (target) filename pattern cannot be null.
-
Instance
public Instance(java.lang.String sourceFilenameMask, java.lang.String sourceEncoding, java.lang.String targetEncoding)
Creates a new Filter Instance with source file mask and two encodings specified, and having a default target filename pattern.Value
null
for source and target encoding means that the filter selects encodings automatically.The default output filename pattern is "${filename}", which means that the name of the translated file should be the same as the name of the input file.
-
Instance
public Instance(java.lang.String sourceFilenameMask, java.lang.String sourceEncoding)
Creates a new Filter Instance with source file mask and source encoding specified, and having a default target encoding and target filename pattern.Value
null
(default value) for source encoding means that the filter selects encoding of the source file automatically.Default value for target encoding is
null
, meaning that the filter selects encoding of the target file automatically.The default output filename pattern is "${filename}", which means that the name of the translated file should be the same as the name of the input file.
-
Instance
public Instance(java.lang.String sourceFilenameMask)
Creates a new Filter Instance with only source file mask specified, and default values for everything else.Default value for source and target encoding is
null
, meaning that the filter selects encodings automatically.The default output filename pattern is "${filename}", which means that the name of the translated file should be the same as the name of the input file.
-
Instance
public Instance()
Creates a new Filter Instance, uninitialized. Is here to support JavaBeans specification, don't use it in filters.
-
-
Method Detail
-
getSourceFilenameMask
public java.lang.String getSourceFilenameMask()
-
setSourceFilenameMask
public void setSourceFilenameMask(java.lang.String sourceFilenameMask)
-
getSourceEncodingHuman
public java.lang.String getSourceEncodingHuman()
-
getSourceEncoding
public java.lang.String getSourceEncoding()
-
setSourceEncoding
public void setSourceEncoding(java.lang.String sourceEncoding)
-
getTargetEncodingHuman
public java.lang.String getTargetEncodingHuman()
-
getTargetEncoding
public java.lang.String getTargetEncoding()
-
setTargetEncoding
public void setTargetEncoding(java.lang.String targetEncoding)
-
getTargetFilenamePattern
public java.lang.String getTargetFilenamePattern()
-
setTargetFilenamePattern
public void setTargetFilenamePattern(java.lang.String targetFilenamePattern)
-
-