public class FileDocumentSource extends OWLOntologyDocumentSourceBase
Constructor and Description |
---|
FileDocumentSource(File file)
Constructs an ontology input source using the specified file.
|
FileDocumentSource(File file,
OWLDocumentFormat format)
Constructs an ontology input source using the specified file.
|
FileDocumentSource(File file,
OWLDocumentFormat format,
String mime)
Constructs an ontology input source using the specified file.
|
Modifier and Type | Method and Description |
---|---|
Optional<InputStream> |
getInputStream()
If an input stream can be obtained from this document source then this method creates it.
|
getAcceptHeaders, getDocumentIRI, getFormat, getMIMEType, hasAlredyFailedOnIRIResolution, hasAlredyFailedOnStreams, setAcceptHeaders, setIRIResolutionFailed
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReader
public FileDocumentSource(File file)
file
- The file from which a concrete representation of an ontology will be obtained.public FileDocumentSource(File file, OWLDocumentFormat format)
file
- The file from which a concrete representation of an ontology will be obtained.format
- ontology format. Can be null.public FileDocumentSource(File file, @Nullable OWLDocumentFormat format, @Nullable String mime)
file
- The file from which a concrete representation of an ontology will be obtained.format
- ontology format. Can be null.mime
- mime typepublic Optional<InputStream> getInputStream()
OWLOntologyDocumentSource
Copyright © 2020 The University of Manchester. All rights reserved.