public interface StreamSourceFormat
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.