public static Pipe newPipe(Reader reader) throws IOException
    {
        try
        {
            return newPipe(DEFAULT_INPUT_FACTORY.createXMLStreamReader(reader));
        }
        catch (XMLStreamException e)
        {
            throw new XmlInputException(e);
        }
    }
public static Pipe newPipe ( Reader reader ) throws IOException { try { return newPipe ( DEFAULT_INPUT_FACTORY . createXMLStreamReader ( reader ) ) ; } catch ( XMLStreamException e ) { throw new XmlInputException ( e ) ; } }
Creates an xml pipe from a {@link Reader}.