Klasse PropertiesSourceFormat
java.lang.Object
org.apache.torque.generator.source.stream.PropertiesSourceFormat
- Alle implementierten Schnittstellen:
StreamSourceFormat
The source type representing an properties source.
$Id: PropertiesSourceFormat.java 1917241 2024-04-21 13:29:41Z tv $
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Checks whether other is equal to this instance.Gets the filename extension this source type typically has.getKey()
Returns an unique key for the source type.int
hashCode()
Returns a hash code of this instance consistent with equals.parse
(InputStream inputStream, ControllerState controllerState) Parses a Stream in Properties format and returns the root element of the created element tree.toString()
-
Felddetails
-
ROOT_ELEMENT_NAME
The name of the root element.- Siehe auch:
-
ENTRY_ELEMENT_NAME
The name of the entry element.- Siehe auch:
-
KEY_ATTRIBUTE_NAME
The name of the key attribute of the entry element.- Siehe auch:
-
-
Konstruktordetails
-
PropertiesSourceFormat
public PropertiesSourceFormat()
-
-
Methodendetails
-
getKey
Returns an unique key for the source type.- Angegeben von:
getKey
in SchnittstelleStreamSourceFormat
- Gibt zurück:
- "properties".
-
getFilenameExtension
Gets the filename extension this source type typically has.- Angegeben von:
getFilenameExtension
in SchnittstelleStreamSourceFormat
- Gibt zurück:
- "properties".
-
parse
public SourceElement parse(InputStream inputStream, ControllerState controllerState) throws SourceException Parses a Stream in Properties format and returns the root element of the created element tree.- Angegeben von:
parse
in SchnittstelleStreamSourceFormat
- Parameter:
inputStream
- the input stream to parse, not null.controllerState
- the controller state.- Gibt zurück:
- the root element of the created tree, not null.
- Löst aus:
SourceException
- if an error occurred when reading from the input stream.IllegalArgumentException
- if the input stream contains a malformed unicode escape sequence.NullPointerException
- if inputStream is null.
-
hashCode
public int hashCode()Returns a hash code of this instance consistent with equals. As all instances of this class are equal to each other, the hash code is always the same. -
equals
Checks whether other is equal to this instance. All instances of this class are equal to each other. -
toString
-