public final class PropertiesSourceFormat extends Object implements StreamSourceFormat
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTRY_ELEMENT_NAME
The name of the entry element.
|
static String |
KEY_ATTRIBUTE_NAME
The name of the key attribute of the entry element.
|
static String |
ROOT_ELEMENT_NAME
The name of the root element.
|
| Constructor and Description |
|---|
PropertiesSourceFormat() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Checks whether other is equal to this instance.
|
String |
getFilenameExtension()
Gets the filename extension this source type typically has.
|
String |
getKey()
Returns an unique key for the source type.
|
int |
hashCode()
Returns a hash code of this instance consistent with equals.
|
SourceElement |
parse(InputStream inputStream,
ControllerState controllerState)
Parses a Stream in Properties format and returns the root element of the
created element tree.
|
String |
toString() |
public static final String ROOT_ELEMENT_NAME
public static final String ENTRY_ELEMENT_NAME
public static final String KEY_ATTRIBUTE_NAME
public String getKey()
getKey in interface StreamSourceFormatpublic String getFilenameExtension()
getFilenameExtension in interface StreamSourceFormatpublic SourceElement parse(InputStream inputStream, ControllerState controllerState) throws SourceException
parse in interface StreamSourceFormatinputStream - the input stream to parse, not null.controllerState - the controller state.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.public int hashCode()
public boolean equals(Object other)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.