|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamSourceFormat
A format for a stream-based source, e.g. properties or XML. $Id: StreamSourceFormat.java 1331190 2012-04-27 02:41:35Z tfischer $
Method Summary | |
---|---|
String |
getFilenameExtension()
Gets the filename extension this source type typically has. |
String |
getKey()
Returns an unique key for the source format. |
SourceElement |
parse(InputStream inputStream,
ControllerState controllerState)
Parses a source file and returns its root element. |
Method Detail |
---|
String getKey()
String getFilenameExtension()
SourceElement parse(InputStream inputStream, ControllerState controllerState) throws SourceException
inputStream
- the stream to read the source file from, not null.ControllerState
- the controller state, not null.
SourceException
- if reading or parsing the source fails.
NullPointerException
- if inputStream
is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |