/** * @deprecated Please use the {@link OMXMLBuilderFactory} API. */ public StAXOMBuilder(InputStream inStream) throws XMLStreamException { this(StAXUtils.createXMLStreamReader(inStream)); }
public static XMLStreamReader createXMLStreamReader(InputStream in, String encoding) throws XMLStreamException { return createXMLStreamReader(null, in, encoding); }
/** * @deprecated use {@link #createXMLStreamReader(StAXParserConfiguration, InputStream)} * with {@link StAXParserConfiguration#STANDALONE} */ public static XMLStreamReader createNetworkDetachedXMLStreamReader(InputStream in) throws XMLStreamException { return createXMLStreamReader(StAXParserConfiguration.STANDALONE, in); }
/** * @deprecated use {@link #createXMLStreamReader(StAXParserConfiguration, Reader)} * with {@link StAXParserConfiguration#STANDALONE} */ public static XMLStreamReader createNetworkDetachedXMLStreamReader(Reader in) throws XMLStreamException { return createXMLStreamReader(StAXParserConfiguration.STANDALONE, in); }
public static XMLStreamReader createXMLStreamReader(InputStream in) throws XMLStreamException { return createXMLStreamReader(null, in); }
/** * @deprecated use {@link #createXMLStreamReader(StAXParserConfiguration, InputStream, String)} * with {@link StAXParserConfiguration#STANDALONE} */ public static XMLStreamReader createNetworkDetachedXMLStreamReader(InputStream in, String encoding) throws XMLStreamException { return createXMLStreamReader(StAXParserConfiguration.STANDALONE, in, encoding); }
/** * @deprecated Please use the {@link OMXMLBuilderFactory} API. */ public StAXOMBuilder(String filePath) throws XMLStreamException, FileNotFoundException { this(StAXUtils.createXMLStreamReader(new FileInputStream(filePath))); }
public XMLStreamReader getReader() throws XMLStreamException { CharArrayReader reader = new CharArrayReader(chars); return StAXUtils.createXMLStreamReader(reader); }
public XMLStreamReader getReader() throws XMLStreamException { if (log.isDebugEnabled()) { log.debug("getReader"); } return StAXUtils.createXMLStreamReader(new ByteArrayInputStream(byteArray.bytes), byteArray.encoding); }
/** * @deprecated Please use {@link OMXMLBuilderFactory#createOMBuilder(InputStream)} instead. */ public static StAXBuilder getBuilder(InputStream inStream) throws XMLStreamException { XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(inStream); return new StAXOMBuilder(xmlReader); }
/** * @deprecated Not used anywhere */ public void init(InputStream inputStream, String charSetEncoding, String url, String contentType) throws OMException { try { this.parser = StAXUtils.createXMLStreamReader(inputStream); } catch (XMLStreamException e1) { throw new OMException(e1); } omfactory = (OMFactoryEx)OMAbstractFactory.getOMFactory(); }
public XMLStreamReader getReader() throws XMLStreamException { if (data == null) { throw new OMException("The InputStreamDataSource does not have a backing object"); } return StAXUtils.createXMLStreamReader(data.is,data.encoding); }
/** * Utility method to get a StAXBuilder * * @param in an InputStream * @return a StAXSOAPModelBuilder for the given InputStream * @throws XMLStreamException * @deprecated If some one really need this method, please shout. */ public static StAXBuilder getBuilder(Reader in) throws XMLStreamException { XMLStreamReader xmlreader = StAXUtils.createXMLStreamReader(in); return new StAXSOAPModelBuilder(xmlreader, null); }
public static StAXBuilder getBuilder(SOAPFactory soapFactory, InputStream in, String charSetEnc) throws XMLStreamException { StAXBuilder builder; XMLStreamReader xmlreader = StAXUtils.createXMLStreamReader(in, charSetEnc); builder = new StAXOMBuilder(soapFactory, xmlreader); return builder; }
public XMLStreamReader getReader() throws XMLStreamException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); serialize(bos, null); ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); return StAXUtils.createXMLStreamReader(bis); }
public final XMLStreamReader getReader() throws XMLStreamException { // Note: we don't actually expect this code to be called because OMSourcedElement should handle // AbstractPushOMDataSource instances differently. Nevertheless the code is functionally correct // (but not very good from a performance point of view, especially for XOP). ByteArrayOutputStream bos = new ByteArrayOutputStream(); serialize(bos, new OMOutputFormat()); return StAXUtils.createXMLStreamReader(new ByteArrayInputStream(bos.toByteArray())); } }
/** * @deprecated Please use the {@link OMXMLBuilderFactory} API. */ public XOPAwareStAXOMBuilder(String filePath, Attachments attachments) throws XMLStreamException, FileNotFoundException { super(new XOPDecodingStreamReader(StAXUtils.createXMLStreamReader(new FileInputStream( filePath)), new AttachmentsMimePartProvider(attachments))); this.attachments = attachments; }
/** @see javax.xml.parsers.DocumentBuilder#parse(java.io.File) */ public Document parse(File file) throws SAXException, IOException { try { OMDOMFactory factory = new OMDOMFactory(); XMLStreamReader reader = StAXUtils .createXMLStreamReader(new FileInputStream(file)); StAXOMBuilder builder = new StAXOMBuilder(factory, reader); return (DocumentImpl) builder.getDocument(); } catch (XMLStreamException e) { throw new SAXException(e); } }
/** @see javax.xml.parsers.DocumentBuilder#parse(java.io.InputStream) */ public Document parse(InputStream is) throws SAXException, IOException { try { OMDOMFactory factory = new OMDOMFactory(); XMLStreamReader reader = StAXUtils .createXMLStreamReader(is); StAXOMBuilder builder = new StAXOMBuilder(factory, reader); return (DocumentImpl) builder.getDocument(); } catch (XMLStreamException e) { throw new SAXException(e); } }
/** * @deprecated Please use the {@link OMXMLBuilderFactory} API. */ public XOPAwareStAXOMBuilder(InputStream inStream, Attachments attachments) throws XMLStreamException { super(new XOPDecodingStreamReader(StAXUtils.createXMLStreamReader(inStream), new AttachmentsMimePartProvider(attachments))); this.attachments = attachments; }