public class L10nPack extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, SecureExternalizable
Constructor and Description |
---|
L10nPack() |
L10nPack(java.util.Map m) |
L10nPack(java.lang.String[] _keys,
java.lang.String[] _values) |
L10nPack(java.lang.String[] _keys,
java.lang.String[] _values,
boolean preSorted) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clonable implementation
|
void |
fillFromUnsortedArrays(java.lang.String[] _keys,
java.lang.String[] _values) |
void |
fillInMissingsFrom(L10nPack p)
Builds missing keys in the pack from another pack.
|
java.lang.Long |
getId() |
java.lang.String[] |
getKeys()
For verification we need all keys, copied for safety's sake.
|
long |
getLmod() |
java.util.Locale |
getLocale()
The following properties are intentionally not simply defined as indirect,
because the setter should return the pack itself, as I don't want to multiply
out the constructors too much.
|
java.lang.String |
getName() |
java.lang.Integer |
getPathPos() |
java.lang.String |
getString(java.lang.String key)
That's what this class is actually about... :-)
|
void |
readFile() |
void |
readFile(java.io.File dir) |
void |
readFile(java.io.File dir,
java.lang.String _name) |
void |
readFile(java.io.File dir,
java.lang.String _name,
java.util.Locale _locale) |
L10nPack |
readFromInputStream(java.io.InputStream is) |
void |
readInstance(SecureObjectInputI s)
Reads an instance of this class from the given SecureObjectInputI without using readObject.
|
L10nPack |
setId(java.lang.Long _id) |
L10nPack |
setLmod(long l) |
L10nPack |
setLocale(java.util.Locale l) |
L10nPack |
setName(java.lang.String s) |
L10nPack |
setPathPos(java.lang.Integer _pos) |
void |
setString(java.lang.String key,
java.lang.String value) |
int |
size() |
java.lang.String |
toString() |
void |
writeFile() |
void |
writeFile(java.io.File dir) |
void |
writeInstance(SecureObjectOutputI s)
Writes an instance of this class to the given SecureObjectOutputI without using writeObject.
|
L10nPack |
writeLine(java.io.BufferedWriter w,
java.lang.String s) |
public L10nPack()
public L10nPack(java.lang.String[] _keys, java.lang.String[] _values)
public L10nPack(java.lang.String[] _keys, java.lang.String[] _values, boolean preSorted)
public L10nPack(java.util.Map m)
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
public void fillFromUnsortedArrays(java.lang.String[] _keys, java.lang.String[] _values)
public void fillInMissingsFrom(L10nPack p)
public java.util.Locale getLocale()
public L10nPack setLocale(java.util.Locale l)
public java.lang.String getName()
public L10nPack setName(java.lang.String s)
public long getLmod()
public L10nPack setLmod(long l)
public java.lang.Long getId()
public L10nPack setId(java.lang.Long _id)
public L10nPack setPathPos(java.lang.Integer _pos)
public java.lang.Integer getPathPos()
public java.lang.String getString(java.lang.String key)
public void setString(java.lang.String key, java.lang.String value)
public java.lang.String[] getKeys()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void writeInstance(SecureObjectOutputI s) throws java.io.IOException
SecureExternalizable
writeInstance
in interface SecureExternalizable
java.io.IOException
public void readInstance(SecureObjectInputI s) throws java.io.IOException
SecureExternalizable
readInstance
in interface SecureExternalizable
java.io.IOException
public void writeFile()
public void writeFile(java.io.File dir)
public void readFile()
public void readFile(java.io.File dir)
public void readFile(java.io.File dir, java.lang.String _name)
public void readFile(java.io.File dir, java.lang.String _name, java.util.Locale _locale)
public L10nPack readFromInputStream(java.io.InputStream is)
public L10nPack writeLine(java.io.BufferedWriter w, java.lang.String s) throws java.io.IOException
java.io.IOException
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.