@Test(expectedExceptions = SbdhException.class) public void exceptionOnNotSBD() throws Exception { SbdReader.newInstance(new ByteArrayInputStream("<StandardBusinessDocument/>".getBytes())); }
public static SbdReader newInstance(final InputStream inputStream) throws SbdhException { return ExceptionUtil.perform(SbdhException.class, () -> newInstance(SbdhHelper.XML_INPUT_FACTORY.createXMLStreamReader(inputStream)) ); }
SbdReader implements Closeable { public static SbdReader newInstance(final InputStream inputStream) throws SbdhException { return ExceptionUtil.perform(SbdhException.class, () -> newInstance(SbdhHelper.XML_INPUT_FACTORY.createXMLStreamReader(inputStream)) ); } }
SbdReader implements Closeable { public static SbdReader newInstance(final InputStream inputStream) throws SbdhException { return ExceptionUtil.perform(SbdhException.class, () -> newInstance(SbdhHelper.XML_INPUT_FACTORY.createXMLStreamReader(inputStream)) ); } private  SbdReader(XMLStreamReader reader); }
SbdReader implements Closeable { public static SbdReader newInstance(final InputStream inputStream) throws SbdhException { return ExceptionUtil.perform(SbdhException.class, () -> newInstance(SbdhHelper.XML_INPUT_FACTORY.createXMLStreamReader(inputStream)) ); } private  SbdReader(XMLStreamReader reader); static SbdReader newInstance(final InputStream inputStream); static SbdReader newInstance(XMLStreamReader xmlStreamReader); Header getHeader(); Type getType(); XMLStreamReader xmlReader(); InputStream binaryReader(); InputStream textReader(); @Override void close(); }
SbdReader implements Closeable { public static SbdReader newInstance(final InputStream inputStream) throws SbdhException { return ExceptionUtil.perform(SbdhException.class, () -> newInstance(SbdhHelper.XML_INPUT_FACTORY.createXMLStreamReader(inputStream)) ); } private  SbdReader(XMLStreamReader reader); static SbdReader newInstance(final InputStream inputStream); static SbdReader newInstance(XMLStreamReader xmlStreamReader); Header getHeader(); Type getType(); XMLStreamReader xmlReader(); InputStream binaryReader(); InputStream textReader(); @Override void close();  }