test_class.file: xml/src/test/java/org/cthul/xml/validation/ValidatingXMLInputFactoryTest.java
test_class.identifier: ValidatingXMLInputFactoryTest
test_case.body: @Test
      public void test_parse_invalid_file() throws Exception {
          final CLSResourceResolver schemas = new CLSResourceResolver(CompositeResolverTest.newTestInstance());
          final File f = new File("src/test/resources/invalid-menu.xml");
          Proc parse = new P0() {
              @Override
              protected Object run() throws Throwable {
                  XMLStreamReader reader = new ValidatingXMLInputFactory(schemas).createXMLStreamReader(f);
                  reader.next();
                  reader.require(XMLStreamConstants.START_ELEMENT, null, null);
                  return null;
              }
          };
          assertThat(parse, raises(XMLStreamException.class, causedBy(SAXParseException.class)));
  
      }
test_case.class_method_signature: ValidatingXMLInputFactoryTest.test_parse_invalid_file()
test_case.full_signature: @Test public void test_parse_invalid_file()
test_case.identifier: test_parse_invalid_file
test_case.invocations: newTestInstance createXMLStreamReader next require assertThat raises causedBy
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_parse_invalid_file()
focal_class.declarator: outputFactory = XMLOutputFactory.newFactory()
focal_class.modifier: private static
focal_class.original_string: private static XMLOutputFactory outputFactory = XMLOutputFactory.newFactory();
focal_class.type: XMLOutputFactory
focal_class.var_name: outputFactory
focal_class.declarator: inputFactory
focal_class.modifier: private final
focal_class.original_string: private final XMLInputFactory inputFactory;
focal_class.type: XMLInputFactory
focal_class.var_name: inputFactory
focal_class.declarator: schemaFactory
focal_class.modifier: private final
focal_class.original_string: private final SchemaFactory schemaFactory;
focal_class.type: SchemaFactory
focal_class.var_name: schemaFactory
focal_class.declarator: tf = (SAXTransformerFactory) SAXTransformerFactory.newInstance()
focal_class.modifier: static final
focal_class.original_string: static final SAXTransformerFactory tf = (SAXTransformerFactory) SAXTransformerFactory.newInstance();
focal_class.type: SAXTransformerFactory
focal_class.var_name: tf
focal_class.file: xml/src/main/java/org/cthul/xml/validation/ValidatingXMLInputFactory.java
focal_class.identifier: ValidatingXMLInputFactory
focal_class.class_method_signature: ValidatingXMLInputFactory.ValidatingXMLInputFactory(LSResourceResolver resolver)
focal_class.full_signature: public  ValidatingXMLInputFactory(LSResourceResolver resolver)
focal_class.identifier: ValidatingXMLInputFactory
focal_class.modifiers: public
focal_class.parameters: (LSResourceResolver resolver)
focal_class.signature:  ValidatingXMLInputFactory(LSResourceResolver resolver)
focal_class.class_method_signature: ValidatingXMLInputFactory.ValidatingXMLInputFactory(XMLInputFactory inputFactory, SchemaFactory schemaFactory)
focal_class.full_signature: public  ValidatingXMLInputFactory(XMLInputFactory inputFactory, SchemaFactory schemaFactory)
focal_class.identifier: ValidatingXMLInputFactory
focal_class.modifiers: public
focal_class.parameters: (XMLInputFactory inputFactory, SchemaFactory schemaFactory)
focal_class.signature:  ValidatingXMLInputFactory(XMLInputFactory inputFactory, SchemaFactory schemaFactory)
focal_class.class_method_signature: ValidatingXMLInputFactory.buffer()
focal_class.full_signature: private ByteArrayOutputStream buffer()
focal_class.identifier: buffer
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ByteArrayOutputStream
focal_class.signature: ByteArrayOutputStream buffer()
focal_class.class_method_signature: ValidatingXMLInputFactory.is(ByteArrayOutputStream buf)
focal_class.full_signature: private InputStream is(ByteArrayOutputStream buf)
focal_class.identifier: is
focal_class.modifiers: private
focal_class.parameters: (ByteArrayOutputStream buf)
focal_class.return: InputStream
focal_class.signature: InputStream is(ByteArrayOutputStream buf)
focal_class.class_method_signature: ValidatingXMLInputFactory.is(byte[] bytes)
focal_class.full_signature: private InputStream is(byte[] bytes)
focal_class.identifier: is
focal_class.modifiers: private
focal_class.parameters: (byte[] bytes)
focal_class.return: InputStream
focal_class.signature: InputStream is(byte[] bytes)
focal_class.class_method_signature: ValidatingXMLInputFactory.validate(XMLEventReader unvalidatedInput)
focal_class.full_signature: private InputStream validate(XMLEventReader unvalidatedInput)
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: (XMLEventReader unvalidatedInput)
focal_class.return: InputStream
focal_class.signature: InputStream validate(XMLEventReader unvalidatedInput)
focal_class.class_method_signature: ValidatingXMLInputFactory.validate(XMLStreamReader unvalidatedInput)
focal_class.full_signature: private InputStream validate(XMLStreamReader unvalidatedInput)
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: (XMLStreamReader unvalidatedInput)
focal_class.return: InputStream
focal_class.signature: InputStream validate(XMLStreamReader unvalidatedInput)
focal_class.class_method_signature: ValidatingXMLInputFactory.validate(StAXSource unvalidatedInput)
focal_class.full_signature: private InputStream validate(StAXSource unvalidatedInput)
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: (StAXSource unvalidatedInput)
focal_class.return: InputStream
focal_class.signature: InputStream validate(StAXSource unvalidatedInput)
focal_class.class_method_signature: ValidatingXMLInputFactory.validate(InputStream is, String systemId, String encoding)
focal_class.full_signature: private InputStream validate(InputStream is, String systemId, String encoding)
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: (InputStream is, String systemId, String encoding)
focal_class.return: InputStream
focal_class.signature: InputStream validate(InputStream is, String systemId, String encoding)
focal_class.class_method_signature: ValidatingXMLInputFactory.validate(Reader r, String systemId)
focal_class.full_signature: private InputStream validate(Reader r, String systemId)
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: (Reader r, String systemId)
focal_class.return: InputStream
focal_class.signature: InputStream validate(Reader r, String systemId)
focal_class.class_method_signature: ValidatingXMLInputFactory.validate(InputSource unvalidatedInput)
focal_class.full_signature: private InputStream validate(InputSource unvalidatedInput)
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: (InputSource unvalidatedInput)
focal_class.return: InputStream
focal_class.signature: InputStream validate(InputSource unvalidatedInput)
focal_class.class_method_signature: ValidatingXMLInputFactory.validate(Source src, Result res)
focal_class.full_signature: private void validate(Source src, Result res)
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: (Source src, Result res)
focal_class.return: void
focal_class.signature: void validate(Source src, Result res)
focal_class.class_method_signature: ValidatingXMLInputFactory.skipWhitespace(byte[] bytes)
focal_class.full_signature: private int skipWhitespace(byte[] bytes)
focal_class.identifier: skipWhitespace
focal_class.modifiers: private
focal_class.parameters: (byte[] bytes)
focal_class.return: int
focal_class.signature: int skipWhitespace(byte[] bytes)
focal_class.class_method_signature: ValidatingXMLInputFactory.stream(String systemId, InputStream is)
focal_class.full_signature: private XMLStreamReader stream(String systemId, InputStream is)
focal_class.identifier: stream
focal_class.modifiers: private
focal_class.parameters: (String systemId, InputStream is)
focal_class.return: XMLStreamReader
focal_class.signature: XMLStreamReader stream(String systemId, InputStream is)
focal_class.class_method_signature: ValidatingXMLInputFactory.event(String systemId, InputStream is)
focal_class.full_signature: private XMLEventReader event(String systemId, InputStream is)
focal_class.identifier: event
focal_class.modifiers: private
focal_class.parameters: (String systemId, InputStream is)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader event(String systemId, InputStream is)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLStreamReader(Reader reader)
focal_class.full_signature: @Override public XMLStreamReader createXMLStreamReader(Reader reader)
focal_class.identifier: createXMLStreamReader
focal_class.modifiers: @Override public
focal_class.parameters: (Reader reader)
focal_class.return: XMLStreamReader
focal_class.signature: XMLStreamReader createXMLStreamReader(Reader reader)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLStreamReader(Source source)
focal_class.full_signature: @Override public XMLStreamReader createXMLStreamReader(Source source)
focal_class.identifier: createXMLStreamReader
focal_class.modifiers: @Override public
focal_class.parameters: (Source source)
focal_class.return: XMLStreamReader
focal_class.signature: XMLStreamReader createXMLStreamReader(Source source)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLStreamReader(InputStream stream)
focal_class.full_signature: @Override public XMLStreamReader createXMLStreamReader(InputStream stream)
focal_class.identifier: createXMLStreamReader
focal_class.modifiers: @Override public
focal_class.parameters: (InputStream stream)
focal_class.return: XMLStreamReader
focal_class.signature: XMLStreamReader createXMLStreamReader(InputStream stream)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLStreamReader(InputStream stream, String encoding)
focal_class.full_signature: @Override public XMLStreamReader createXMLStreamReader(InputStream stream, String encoding)
focal_class.identifier: createXMLStreamReader
focal_class.modifiers: @Override public
focal_class.parameters: (InputStream stream, String encoding)
focal_class.return: XMLStreamReader
focal_class.signature: XMLStreamReader createXMLStreamReader(InputStream stream, String encoding)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLStreamReader(String systemId, InputStream stream)
focal_class.full_signature: @Override public XMLStreamReader createXMLStreamReader(String systemId, InputStream stream)
focal_class.identifier: createXMLStreamReader
focal_class.modifiers: @Override public
focal_class.parameters: (String systemId, InputStream stream)
focal_class.return: XMLStreamReader
focal_class.signature: XMLStreamReader createXMLStreamReader(String systemId, InputStream stream)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLStreamReader(String systemId, Reader reader)
focal_class.full_signature: @Override public XMLStreamReader createXMLStreamReader(String systemId, Reader reader)
focal_class.identifier: createXMLStreamReader
focal_class.modifiers: @Override public
focal_class.parameters: (String systemId, Reader reader)
focal_class.return: XMLStreamReader
focal_class.signature: XMLStreamReader createXMLStreamReader(String systemId, Reader reader)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLEventReader(Reader reader)
focal_class.full_signature: @Override public XMLEventReader createXMLEventReader(Reader reader)
focal_class.identifier: createXMLEventReader
focal_class.modifiers: @Override public
focal_class.parameters: (Reader reader)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader createXMLEventReader(Reader reader)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLEventReader(String systemId, Reader reader)
focal_class.full_signature: @Override public XMLEventReader createXMLEventReader(String systemId, Reader reader)
focal_class.identifier: createXMLEventReader
focal_class.modifiers: @Override public
focal_class.parameters: (String systemId, Reader reader)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader createXMLEventReader(String systemId, Reader reader)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLEventReader(XMLStreamReader reader)
focal_class.full_signature: @Override public XMLEventReader createXMLEventReader(XMLStreamReader reader)
focal_class.identifier: createXMLEventReader
focal_class.modifiers: @Override public
focal_class.parameters: (XMLStreamReader reader)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader createXMLEventReader(XMLStreamReader reader)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLEventReader(Source source)
focal_class.full_signature: @Override public XMLEventReader createXMLEventReader(Source source)
focal_class.identifier: createXMLEventReader
focal_class.modifiers: @Override public
focal_class.parameters: (Source source)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader createXMLEventReader(Source source)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLEventReader(InputStream stream)
focal_class.full_signature: @Override public XMLEventReader createXMLEventReader(InputStream stream)
focal_class.identifier: createXMLEventReader
focal_class.modifiers: @Override public
focal_class.parameters: (InputStream stream)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader createXMLEventReader(InputStream stream)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLEventReader(InputStream stream, String encoding)
focal_class.full_signature: @Override public XMLEventReader createXMLEventReader(InputStream stream, String encoding)
focal_class.identifier: createXMLEventReader
focal_class.modifiers: @Override public
focal_class.parameters: (InputStream stream, String encoding)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader createXMLEventReader(InputStream stream, String encoding)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLEventReader(String systemId, InputStream stream)
focal_class.full_signature: @Override public XMLEventReader createXMLEventReader(String systemId, InputStream stream)
focal_class.identifier: createXMLEventReader
focal_class.modifiers: @Override public
focal_class.parameters: (String systemId, InputStream stream)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader createXMLEventReader(String systemId, InputStream stream)
focal_class.class_method_signature: ValidatingXMLInputFactory.createFilteredReader(XMLStreamReader reader, StreamFilter filter)
focal_class.full_signature: @Override public XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter)
focal_class.identifier: createFilteredReader
focal_class.modifiers: @Override public
focal_class.parameters: (XMLStreamReader reader, StreamFilter filter)
focal_class.return: XMLStreamReader
focal_class.signature: XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter)
focal_class.class_method_signature: ValidatingXMLInputFactory.createFilteredReader(XMLEventReader reader, EventFilter filter)
focal_class.full_signature: @Override public XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter)
focal_class.identifier: createFilteredReader
focal_class.modifiers: @Override public
focal_class.parameters: (XMLEventReader reader, EventFilter filter)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter)
focal_class.class_method_signature: ValidatingXMLInputFactory.getXMLResolver()
focal_class.full_signature: @Override public XMLResolver getXMLResolver()
focal_class.identifier: getXMLResolver
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: XMLResolver
focal_class.signature: XMLResolver getXMLResolver()
focal_class.class_method_signature: ValidatingXMLInputFactory.setXMLResolver(XMLResolver resolver)
focal_class.full_signature: @Override public void setXMLResolver(XMLResolver resolver)
focal_class.identifier: setXMLResolver
focal_class.modifiers: @Override public
focal_class.parameters: (XMLResolver resolver)
focal_class.return: void
focal_class.signature: void setXMLResolver(XMLResolver resolver)
focal_class.class_method_signature: ValidatingXMLInputFactory.getXMLReporter()
focal_class.full_signature: @Override public XMLReporter getXMLReporter()
focal_class.identifier: getXMLReporter
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: XMLReporter
focal_class.signature: XMLReporter getXMLReporter()
focal_class.class_method_signature: ValidatingXMLInputFactory.setXMLReporter(XMLReporter reporter)
focal_class.full_signature: @Override public void setXMLReporter(XMLReporter reporter)
focal_class.identifier: setXMLReporter
focal_class.modifiers: @Override public
focal_class.parameters: (XMLReporter reporter)
focal_class.return: void
focal_class.signature: void setXMLReporter(XMLReporter reporter)
focal_class.class_method_signature: ValidatingXMLInputFactory.setProperty(String name, Object value)
focal_class.full_signature: @Override public void setProperty(String name, Object value)
focal_class.identifier: setProperty
focal_class.modifiers: @Override public
focal_class.parameters: (String name, Object value)
focal_class.return: void
focal_class.signature: void setProperty(String name, Object value)
focal_class.class_method_signature: ValidatingXMLInputFactory.getProperty(String name)
focal_class.full_signature: @Override public Object getProperty(String name)
focal_class.identifier: getProperty
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: Object
focal_class.signature: Object getProperty(String name)
focal_class.class_method_signature: ValidatingXMLInputFactory.isPropertySupported(String name)
focal_class.full_signature: @Override public boolean isPropertySupported(String name)
focal_class.identifier: isPropertySupported
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: boolean
focal_class.signature: boolean isPropertySupported(String name)
focal_class.class_method_signature: ValidatingXMLInputFactory.setEventAllocator(XMLEventAllocator allocator)
focal_class.full_signature: @Override public void setEventAllocator(XMLEventAllocator allocator)
focal_class.identifier: setEventAllocator
focal_class.modifiers: @Override public
focal_class.parameters: (XMLEventAllocator allocator)
focal_class.return: void
focal_class.signature: void setEventAllocator(XMLEventAllocator allocator)
focal_class.class_method_signature: ValidatingXMLInputFactory.getEventAllocator()
focal_class.full_signature: @Override public XMLEventAllocator getEventAllocator()
focal_class.identifier: getEventAllocator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: XMLEventAllocator
focal_class.signature: XMLEventAllocator getEventAllocator()
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLStreamReader(File f)
focal_class.full_signature: public XMLStreamReader createXMLStreamReader(File f)
focal_class.identifier: createXMLStreamReader
focal_class.modifiers: public
focal_class.parameters: (File f)
focal_class.return: XMLStreamReader
focal_class.signature: XMLStreamReader createXMLStreamReader(File f)
focal_class.class_method_signature: ValidatingXMLInputFactory.createXMLEventReader(File f)
focal_class.full_signature: public XMLEventReader createXMLEventReader(File f)
focal_class.identifier: createXMLEventReader
focal_class.modifiers: public
focal_class.parameters: (File f)
focal_class.return: XMLEventReader
focal_class.signature: XMLEventReader createXMLEventReader(File f)
focal_class.superclass: extends XMLInputFactory
focal_method.body: @Override
      public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException {
          return stream(null, validate(reader, null));
      }
focal_method.class_method_signature: ValidatingXMLInputFactory.createXMLStreamReader(Reader reader)
focal_method.full_signature: @Override public XMLStreamReader createXMLStreamReader(Reader reader)
focal_method.identifier: createXMLStreamReader
focal_method.invocations: stream validate
focal_method.modifiers: @Override public
focal_method.parameters: (Reader reader)
focal_method.return: XMLStreamReader
focal_method.signature: XMLStreamReader createXMLStreamReader(Reader reader)