Package com.evolveum.midpoint.prism
Interface ParserSource
-
- All Known Implementing Classes:
ParserElementSource,ParserFileSource,ParserInputStreamSource,ParserStringSource,ParserXNodeSource
public interface ParserSourceSource for prism parser (file, input stream, string, DOM tree, ...).- Author:
- mederly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancloseStreamAfterParsing()Should the stream be closed after parsing? Useful for sources that create/open the stream themselves.@NotNull InputStreamgetInputStream()Presents the input data in the form of an InputStream.booleanthrowsIOException()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?
-
-