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

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

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

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

try {
 final InputStream schemaIn = schemaReader == null ? null :
   schemaReader.getSchemaAsStream(schemaPath);
 if (schemaIn == null) {
  schema = schemaFactory.newSchema(schemaLocation.toURL());
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;
 }
};
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;
 }
};
loci.common.xmlXMLTools$SchemaReader

Javadoc

A schema reader can provide InputStreams for certain XML schemas.

Most used methods

  • getSchemaAsStream
    Get the given XML schema definition as an InputStream.

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top PhpStorm 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