public class ConfigFile extends ResourceFile
comment, id, path, type
Constructor and Description |
---|
ConfigFile()
Constructor method for i18n purposes only.
|
ConfigFile(java.lang.String id,
java.lang.String comment,
java.lang.String path)
Constructs a configuration file resource.
|
Modifier and Type | Method and Description |
---|---|
void |
deserialize(java.io.InputStream istream,
java.lang.String format)
Reads the resource contents from the specified stream.
|
void |
serialize(java.io.OutputStream ostream,
java.lang.String format)
Saves the resource contents persistently with the specified byte based output stream.
|
getComment, getDesiredPath, getIdentifier, getMimeType
public ConfigFile() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic ConfigFile(java.lang.String id, java.lang.String comment, java.lang.String path)
id
- The identifier for the resource filecomment
- The optional commentpath
- The desired configuration pathjava.lang.NullPointerException
- If parameters are null
public void serialize(java.io.OutputStream ostream, java.lang.String format) throws java.io.IOException
ostream
- Byte based output stream with a certain encodingformat
- The format the data is stored (FORMAT_UNCOMPRESSED|...)java.io.IOException
- An I/O error occurredpublic void deserialize(java.io.InputStream istream, java.lang.String format) throws java.io.IOException
istream
- The byte based stream to be read from, never closedformat
- The format the data is stored (FORMAT_UNCOMPRESSED|...)java.io.IOException
- An I/O error occurredCopyright © 2005-2023 Leisenfels GmbH. All rights reserved.