com.tekann.codegen.pda.util
Class Properties

java.lang.Object
  extended by totalcross.util.Hashtable
      extended by com.tekann.codegen.pda.util.Properties

public class Properties
extends totalcross.util.Hashtable

This class represents Java property file.

Author:
Evandro Rathke

Field Summary
 
Fields inherited from class totalcross.util.Hashtable
allowDuplicateKeys, collisions
 
Constructor Summary
Properties()
          Default constructor
Properties(int initialCapacity)
          Constructs a Properties
 
Method Summary
 java.lang.Object get(java.lang.String key)
           
 void load(byte[] content)
          Loads the properties through a File.
 void load(java.lang.String res)
           
 java.lang.String put(java.lang.String key, java.lang.String value)
          Puts an item
 byte[] save()
          Transform the properties in a pair like key=value.
 
Methods inherited from class totalcross.util.Hashtable
clear, copyInto, dumpKeysValues, exists, get, get, get, get, getKeys, getKeyValuePairs, getString, getString, getValues, put, put, remove, remove, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Properties

public Properties()
Default constructor


Properties

public Properties(int initialCapacity)
Constructs a Properties

Parameters:
initialCapacity -
Method Detail

get

public java.lang.Object get(java.lang.String key)

load

public void load(byte[] content)
Loads the properties through a File.

Parameters:
content - The File content.

load

public void load(java.lang.String res)

put

public java.lang.String put(java.lang.String key,
                            java.lang.String value)
Puts an item

Parameters:
key -
value -
Returns:
A String

save

public byte[] save()
Transform the properties in a pair like key=value.

Returns:
The file content.