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, ...).
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Should the stream be closed after parsing?@NotNull InputStream
Presents the input data in the form of an InputStream.boolean
Is the source expected to throw IOExceptions?
-
Method Details
-
getInputStream
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?
-