Refine search
@Override protected Object unmarshalXmlStreamReader(XMLStreamReader streamReader) throws XmlMappingException { return doUnmarshal(new StaxReader(new QNameMap(), streamReader, this.nameCoder), null); }
/** * @since 1.4 */ public StaxReader(QNameMap qnameMap, XMLStreamReader in, NameCoder replacer) { super(replacer); this.qnameMap = qnameMap; this.in = in; moveDown(); }
public String getAttributeName(int index) { return decodeAttribute(in.getAttributeLocalName(index)); }
public AbstractPullReader createStaxReader(XMLStreamReader in) { return new StaxReader(qnameMap, in, getNameCoder()); }
public String getAttribute(String name) { return in.getAttributeValue(null, encodeAttribute(name)); }
public String getAttributeName(int index) { return unescapeXmlName(in.getAttributeLocalName(index)); }
@Override protected Object unmarshalXmlStreamReader(XMLStreamReader streamReader) throws XmlMappingException { return doUnmarshal(new StaxReader(new QNameMap(), streamReader, this.nameCoder), null); }
@Override public String getAttribute(final String name) { return in.getAttributeValue(null, encodeAttribute(name)); }
public String getAttributeName(int index) { return unescapeXmlName(in.getAttributeLocalName(index)); }
public HierarchicalStreamReader createReader(final InputStream input) { try { return new StaxReader(new QNameMap(), mif.createXMLStreamReader(input), getNameCoder()); } catch (final XMLStreamException e) { throw new StreamException(e); } }
public AbstractPullReader createStaxReader(XMLStreamReader in) { return new StaxReader(qnameMap, in, getNameCoder()); }
/** * @since 1.4 */ public StaxReader(final QNameMap qnameMap, final XMLStreamReader in, final NameCoder replacer) { super(replacer); this.qnameMap = qnameMap; this.in = in; moveDown(); }
public String getAttribute(String name) { return in.getAttributeValue(null, encodeAttribute(name)); }
@Override public String getAttributeName(final int index) { return decodeAttribute(in.getAttributeLocalName(index)); }
public HierarchicalStreamReader createReader(final Reader reader) { try { return new StaxReader(new QNameMap(), mif.createXMLStreamReader(reader), getNameCoder()); } catch (final XMLStreamException e) { throw new StreamException(e); } }
public AbstractPullReader createStaxReader(XMLStreamReader in) { return new StaxReader(qnameMap, in, getNameCoder()); }
/** * @since 1.4 */ public StaxReader(QNameMap qnameMap, XMLStreamReader in, NameCoder replacer) { super(replacer); this.qnameMap = qnameMap; this.in = in; moveDown(); }
public String getAttribute(String name) { return in.getAttributeValue(null, encodeAttribute(name)); }
public String getAttributeName(int index) { return decodeAttribute(in.getAttributeLocalName(index)); }
public HierarchicalStreamReader createReader(File in) { InputStream instream = null; try { instream = new FileInputStream(in); return new StaxReader(new QNameMap(), mif.createXMLStreamReader(in .toURI() .toASCIIString(), instream), getNameCoder()); } catch (final XMLStreamException e) { throw new StreamException(e); } catch (IOException e) { throw new StreamException(e); } finally { if (instream != null) { try { instream.close(); } catch (IOException e) { // ignore } } } }