/** * A convenience method that obtains an input stream from a URI. This method sets up the correct * request type and wraps the input stream within a buffered input stream. * * @param documentIRI The URI from which the input stream should be returned * @param config the load configuration * @return The input stream obtained from the URI * @throws OWLOntologyInputSourceException if there was an {@code IOException} in obtaining the * input stream from the URI. * @deprecated use {@link #getInputStream(IRI, OWLOntologyLoaderConfiguration, String)} instead */ @Deprecated public static Optional<InputStream> getInputStream(IRI documentIRI, OWLOntologyLoaderConfiguration config) throws OWLOntologyInputSourceException { return getInputStream(documentIRI, config, DEFAULT_REQUEST); }
/** * A convenience method that obtains an input stream from a URI. This method sets up the correct * request type and wraps the input stream within a buffered input stream. * * @param documentIRI The URI from which the input stream should be returned * @param config the load configuration * @return The input stream obtained from the URI * @throws OWLOntologyInputSourceException if there was an {@code IOException} in obtaining the * input stream from the URI. * @deprecated use {@link #getInputStream(IRI, OWLOntologyLoaderConfiguration, String)} instead */ @Deprecated public static Optional<InputStream> getInputStream(IRI documentIRI, OWLOntologyLoaderConfiguration config) throws OWLOntologyInputSourceException { return getInputStream(documentIRI, config, DEFAULT_REQUEST); }
/** * A convenience method that obtains an input stream from a URI. This method sets up the correct * request type and wraps the input stream within a buffered input stream. * * @param documentIRI The URI from which the input stream should be returned * @param config the load configuration * @return The input stream obtained from the URI * @throws OWLOntologyInputSourceException if there was an {@code IOException} in obtaining the * input stream from the URI. * @deprecated use {@link #getInputStream(IRI, OWLOntologyLoaderConfiguration, String)} instead */ @Deprecated public static Optional<InputStream> getInputStream(IRI documentIRI, OWLOntologyLoaderConfiguration config) throws OWLOntologyInputSourceException { return getInputStream(documentIRI, config, DEFAULT_REQUEST); }
input = getInputStream(source.getDocumentIRI(), configuration, headers.get()); } else { input = getInputStream(source.getDocumentIRI(), configuration, DEFAULT_REQUEST);
input = getInputStream(source.getDocumentIRI(), configuration, headers.get()); } else { input = getInputStream(source.getDocumentIRI(), configuration, DEFAULT_REQUEST);
input = getInputStream(source.getDocumentIRI(), configuration, headers.get()); } else { input = getInputStream(source.getDocumentIRI(), configuration, DEFAULT_REQUEST);