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}.
protostuff-xml/src/main/java/io/protostuff/XmlIOUtil.java