Tabnine Logo
XMLTools$SchemaReader.getSchemaAsStream
Code IndexAdd Tabnine to your IDE (free)

How to use
getSchemaAsStream
method
in
loci.common.xml.XMLTools$SchemaReader

Best Java code snippets using loci.common.xml.XMLTools$SchemaReader.getSchemaAsStream (Showing top 4 results out of 315)

origin: org.openmicroscopy/ome-common

try {
 final InputStream schemaIn = schemaReader == null ? null :
   schemaReader.getSchemaAsStream(schemaPath);
 if (schemaIn == null) {
  schema = schemaFactory.newSchema(schemaLocation.toURL());
origin: ome/formats-common

try {
 final InputStream schemaIn = schemaReader == null ? null :
   schemaReader.getSchemaAsStream(schemaPath);
 if (schemaIn == null) {
  schema = schemaFactory.newSchema(schemaLocation.toURL());
origin: org.openmicroscopy/ome-common

 @Override
 public LSInput resolveResource(String type, String namespaceURI,
   String publicId, String systemId, String baseURI) {
  InputStream stream = schemaReader.getSchemaAsStream(systemId);
  if (stream == null) {
   return null;
  }
  final LSInput input = new LSInputI();
  input.setPublicId(publicId);
  input.setSystemId(systemId);
  input.setBaseURI(baseURI);
  try {
   input.setCharacterStream(new InputStreamReader(stream, "UTF-8"));
  } catch (UnsupportedEncodingException e) {
   LOGGER.warn("no UTF-8 character encoding available");
   return null;
  }
  return input;
 }
};
origin: ome/formats-common

 @Override
 public LSInput resolveResource(String type, String namespaceURI,
   String publicId, String systemId, String baseURI) {
  InputStream stream = schemaReader.getSchemaAsStream(systemId);
  if (stream == null) {
   return null;
  }
  final LSInput input = new LSInputI();
  input.setPublicId(publicId);
  input.setSystemId(systemId);
  input.setBaseURI(baseURI);
  try {
   input.setCharacterStream(new InputStreamReader(stream, "UTF-8"));
  } catch (UnsupportedEncodingException e) {
   LOGGER.warn("no UTF-8 character encoding available");
   return null;
  }
  return input;
 }
};
loci.common.xmlXMLTools$SchemaReadergetSchemaAsStream

Javadoc

Get the given XML schema definition as an InputStream.

Popular methods of XMLTools$SchemaReader

    Popular in Java

    • Updating database using SQL prepared statement
    • getExternalFilesDir (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • getResourceAsStream (ClassLoader)
    • OutputStream (java.io)
      A writable sink for bytes.Most clients will use output streams that write data to the file system (
    • Dictionary (java.util)
      Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
    • Locale (java.util)
      Locale represents a language/country/variant combination. Locales are used to alter the presentatio
    • JButton (javax.swing)
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • Runner (org.openjdk.jmh.runner)
    • Best IntelliJ plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now