Code example for SequenceInputStream

0
            ); 
            ByteArrayInputStream footer = new ByteArrayInputStream(
                "</uigestures>".getBytes()
            ); 
            is = new SequenceInputStream(
                new SequenceInputStream(header, wrap),
                footer
            ); 
        } 
         
        SAXParserFactory f = SAXParserFactory.newInstance();
        f.setValidating(false);
        SAXParser p;
        try { 
            f.setFeature("http://apache.org/xml/features/continue-after-fatal-error", true); // NOI18N
            p = f.newSAXParser();
        } catch (ParserConfigurationException ex) {
            LOG.log(Level.SEVERE, null, ex);
            throw (IOException)new IOException(ex.getMessage()).initCause(ex);
        } catch (SAXException ex) {
            LOG.log(Level.SEVERE, null, ex);