public abstract class OWLOntologyDocumentSourceBase extends Object implements OWLOntologyDocumentSource
| Constructor and Description |
|---|
OWLOntologyDocumentSourceBase(OWLDocumentFormat format,
String mime)
Constructs an ontology input source using the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
OWLDocumentFormat |
getFormat() |
String |
getMIMEType() |
static IRI |
getNextDocumentIRI(String prefix) |
boolean |
isFormatKnown() |
boolean |
isMIMETypeKnown() |
static InputStream |
wrap(InputStream delegate)
Wrap an input stream to strip BOMs.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentIRI, getInputStream, getReader, isInputStreamAvailable, isReaderAvailablepublic OWLOntologyDocumentSourceBase(@Nullable OWLDocumentFormat format, @Nullable String mime)
format - ontology format. If null, it is considered unspecifiedmime - mime type. If null or empty, it is considered unspecified.@Nonnull public static IRI getNextDocumentIRI(String prefix)
prefix - prefix for result@Nonnull public static InputStream wrap(@Nonnull InputStream delegate)
delegate - delegate to wrappublic OWLDocumentFormat getFormat()
getFormat in interface OWLOntologyDocumentSourcepublic boolean isFormatKnown()
isFormatKnown in interface OWLOntologyDocumentSourcepublic String getMIMEType()
getMIMEType in interface OWLOntologyDocumentSourcepublic boolean isMIMETypeKnown()
isMIMETypeKnown in interface OWLOntologyDocumentSourceCopyright © 2016 The University of Manchester. All Rights Reserved.