Package com.evolveum.midpoint.prism
Class ParserFileSource
- java.lang.Object
-
- com.evolveum.midpoint.prism.ParserFileSource
-
- All Implemented Interfaces:
ParserSource
public class ParserFileSource extends Object implements ParserSource
-
-
Constructor Summary
Constructors Constructor Description ParserFileSource(@NotNull File file)
-
Method Summary
All Methods Instance Methods Concrete 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 File
getFile()
@NotNull InputStream
getInputStream()
Presents the input data in the form of an InputStream.boolean
throwsIOException()
Is the source expected to throw IOExceptions?
-
-
-
Constructor Detail
-
ParserFileSource
public ParserFileSource(@NotNull @NotNull File file)
-
-
Method Detail
-
getFile
@NotNull public @NotNull File getFile()
-
getInputStream
@NotNull public @NotNull InputStream getInputStream() throws FileNotFoundException
Description copied from interface:ParserSource
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.- Specified by:
getInputStream
in interfaceParserSource
- Throws:
FileNotFoundException
-
closeStreamAfterParsing
public boolean closeStreamAfterParsing()
Description copied from interface:ParserSource
Should the stream be closed after parsing? Useful for sources that create/open the stream themselves.- Specified by:
closeStreamAfterParsing
in interfaceParserSource
-
throwsIOException
public boolean throwsIOException()
Description copied from interface:ParserSource
Is the source expected to throw IOExceptions?- Specified by:
throwsIOException
in interfaceParserSource
-
-