public Object getProperty(final String name) throws IllegalArgumentException { return xmlStreamReader.getProperty(name); } }
private static boolean getBoolProp(XMLStreamReader r, String n) { try { Object o = r.getProperty(n); if(o instanceof Boolean) return (Boolean)o; return false; } catch (Exception e) { // be defensive against broken StAX parsers since javadoc is not clear // about when an error happens return false; } }
@Override public Object getProperty(String name) throws IllegalArgumentException { return underlying.getProperty(name); }
private static boolean checkImplementaionNameOfSjsxp(XMLStreamReader reader) { try { Object name = reader.getProperty("http://java.sun.com/xml/stream/properties/implementation-name"); return name!=null && name.equals("sjsxp"); } catch (Exception e) { // be defensive against broken StAX parsers since javadoc is not clear // about when an error happens return false; } }
public Object getProperty(String s) throws IllegalArgumentException { return _xmlStream.getProperty(s); }
private static boolean getBoolProp(XMLStreamReader r, String n) { try { Object o = r.getProperty(n); if(o instanceof Boolean) return (Boolean)o; return false; } catch (Exception e) { // be defensive against broken StAX parsers since javadoc is not clear // about when an error happens return false; } }
private static boolean checkImplementaionNameOfSjsxp(XMLStreamReader reader) { try { Object name = reader.getProperty("http://java.sun.com/xml/stream/properties/implementation-name"); return name!=null && name.equals("sjsxp"); } catch (Exception e) { // be defensive against broken StAX parsers since javadoc is not clear // about when an error happens return false; } }
@Override protected String getDocumentTypeDeclaration(XMLStreamReader reader) { return (String)reader.getProperty("javax.xml.stream.dtd.declaration"); } };
/** * * @param name * @throws IllegalArgumentException * @return */ public Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException { return fStreamReader.getProperty(name); }
private static boolean getBoolProp(XMLStreamReader r, String n) { try { Object o = r.getProperty(n); if(o instanceof Boolean) return (Boolean)o; return false; } catch (Exception e) { // be defensive against broken StAX parsers since javadoc is not clear // about when an error happens return false; } }
public static boolean isSecureReader(XMLStreamReader reader, Message message) { if (reader instanceof DocumentDepthProperties) { return true; } try { if (reader.getProperty("com.ctc.wstx.maxChildrenPerElement") != null) { return true; } } catch (Exception ex) { //ignore } return false; }
/** Get the value of a feature/property from the underlying implementation * @param name The name of the property * @return The value of the property * @throws IllegalArgumentException if the property is not supported */ public Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException { return fXMLReader.getProperty(name) ; }
/** Get the value of a feature/property from the underlying implementation * @param name The name of the property * @return The value of the property * @throws IllegalArgumentException if the property is not supported */ public Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException { return fXMLReader.getProperty(name) ; }
/** * * @param name * @throws IllegalArgumentException * @return */ public Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException { return fStreamReader.getProperty(name); }
/** * @param key * @throws IllegalArgumentException */ public Object getProperty(String key) throws IllegalArgumentException { if (reader != null) { return reader.getProperty(key); } return null; }
public Object getProperty(String s) throws IllegalArgumentException { return _xmlStream.getProperty(s); }
@Override public Object getProperty( String name ) throws IllegalArgumentException { return reader.getProperty( name ); }
/** * * @param name * @throws IllegalArgumentException * @return */ public Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException { return fStreamReader.getProperty(name); }
public Object getProperty(String s) throws IllegalArgumentException { if (isDelegating()) { return realReader.getProperty(s); } else { throw new IllegalArgumentException(); } }
public XMLEventReaderImpl(XMLStreamReader reader) throws XMLStreamException { fXMLReader = reader ; fXMLEventAllocator = (XMLEventAllocator)reader.getProperty(XMLInputFactory.ALLOCATOR); if(fXMLEventAllocator == null){ fXMLEventAllocator = new XMLEventAllocatorImpl(); } fPeekedEvent = fXMLEventAllocator.allocate(fXMLReader); }