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

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • 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