code: public static Pipe newPipe(byte[] data, int offset, int length) throws IOException
      {
          return newPipe(new ByteArrayInputStream(data, offset, length));
      }
docs: Creates an xml pipe from a byte array.