@Test void getSchemaFromInputStream() throws IOException { String schemaStr = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><xs:schema xmlns:xs=\"http: try (InputStream bis = new ByteArrayInputStream(schemaStr.getBytes("UTF-8"))) { SchemaLoader schemaLoader = new SchemaLoader(bis); assertNotNull(schemaLoader.getSchema()); } }
public Schema getSchema() { return schema; }
SchemaLoader implements LSResourceResolver { public Schema getSchema() { return schema; } }
SchemaLoader implements LSResourceResolver { public Schema getSchema() { return schema; } SchemaLoader(String schemaName);  SchemaLoader(InputStream is); }
SchemaLoader implements LSResourceResolver { public Schema getSchema() { return schema; } SchemaLoader(String schemaName);  SchemaLoader(InputStream is); Schema getSchema(); @Override LSInput resolveResource(
      String type, String namespaceURI, String publicId, String systemId, String baseURI); }
SchemaLoader implements LSResourceResolver { public Schema getSchema() { return schema; } SchemaLoader(String schemaName);  SchemaLoader(InputStream is); Schema getSchema(); @Override LSInput resolveResource(
      String type, String namespaceURI, String publicId, String systemId, String baseURI);  }