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, setIRIResolutionFailedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReaderpublic 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()
OWLOntologyDocumentSourceCopyright © 2021 The University of Manchester. All rights reserved.