Package com.evolveum.midpoint.prism
Interface ParserSource
-
- All Known Implementing Classes:
ParserElementSource
,ParserFileSource
,ParserInputStreamSource
,ParserStringSource
,ParserXNodeSource
public interface ParserSource
Source for prism parser (file, input stream, string, DOM tree, ...).- Author:
- mederly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
closeStreamAfterParsing()
Should the stream be closed after parsing? Useful for sources that create/open the stream themselves.@NotNull InputStream
getInputStream()
Presents the input data in the form of an InputStream.boolean
throwsIOException()
Is the source expected to throw IOExceptions?
-
-
-
Method Detail
-
getInputStream
@NotNull @NotNull InputStream getInputStream() throws IOException
Presents the input data in the form of an InputStream. For some special cases might not be implemented, and the data could be accessed in another way.- Throws:
IOException
-
closeStreamAfterParsing
boolean closeStreamAfterParsing()
Should the stream be closed after parsing? Useful for sources that create/open the stream themselves.
-
throwsIOException
boolean throwsIOException()
Is the source expected to throw IOExceptions?
-
-