public StAXDocumentSerializer() { super(true); _manager = new StAXManager(StAXManager.CONTEXT_WRITER); }
public boolean isPropertySupported(String name) { if(name == null) return false ; else return _manager.containsProperty(name); }
public Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException { if (_manager != null) { return _manager.getProperty(name); } return null; }
public StAXManager(int context) { switch(context){ case CONTEXT_READER:{ initConfigurableReaderProperties(); break; } case CONTEXT_WRITER:{ initWriterProps(); break; } } }
public Object getProperty(String name) throws java.lang.IllegalArgumentException { if(name == null){ throw new IllegalArgumentException(CommonResourceBundle.getInstance().getString("message.propertyNotSupported", new Object[]{null})); } if(_manager.containsProperty(name)) return _manager.getProperty(name); throw new IllegalArgumentException(CommonResourceBundle.getInstance().getString("message.propertyNotSupported", new Object[]{name})); }
/** Allows the user to set specific feature/property on the underlying implementation. The underlying implementation * is not required to support every setting of every property in the specification and may use IllegalArgumentException * to signal that an unsupported property may not be set with the specified value. * @param name The name of the property (may not be null) * @param value The value of the property * @throws IllegalArgumentException if the property is not supported */ public void setProperty(String name, Object value) throws IllegalArgumentException { _manager.setProperty(name,value); }
public Object getProperty(String name){ checkProperty(name); return features.get(name); }
public StAXManager(StAXManager manager){ HashMap properties = manager.getProperties(); features.putAll(properties); }
public Object getProperty(String name) throws java.lang.IllegalArgumentException { if(name == null){ throw new IllegalArgumentException(CommonResourceBundle.getInstance().getString("message.propertyNotSupported", new Object[]{null})); } if(_manager.containsProperty(name)) return _manager.getProperty(name); throw new IllegalArgumentException(CommonResourceBundle.getInstance().getString("message.propertyNotSupported", new Object[]{name})); }
/** Allows the user to set specific feature/property on the underlying implementation. The underlying implementation * is not required to support every setting of every property in the specification and may use IllegalArgumentException * to signal that an unsupported property may not be set with the specified value. * @param name The name of the property (may not be null) * @param value The value of the property * @throws IllegalArgumentException if the property is not supported */ public void setProperty(String name, Object value) throws IllegalArgumentException { _manager.setProperty(name,value); }
public StAXManager(int context) { switch(context){ case CONTEXT_READER:{ initConfigurableReaderProperties(); break; } case CONTEXT_WRITER:{ initWriterProps(); break; } } }
public Object getProperty(String name){ checkProperty(name); return features.get(name); }
public StAXManager(StAXManager manager){ HashMap properties = manager.getProperties(); features.putAll(properties); }
public Object getProperty(String name) throws java.lang.IllegalArgumentException { if(name == null){ throw new IllegalArgumentException(CommonResourceBundle.getInstance().getString("message.propertyNotSupported", new Object[]{null})); } if(_manager.containsProperty(name)) return _manager.getProperty(name); throw new IllegalArgumentException(CommonResourceBundle.getInstance().getString("message.propertyNotSupported", new Object[]{name})); }
/** Creates a new instance of StAXOutputFactory */ public StAXOutputFactory() { _manager = new StAXManager(StAXManager.CONTEXT_WRITER); }
/** Set a user defined event allocator for events * @param allocator the user defined allocator */ public void setEventAllocator(XMLEventAllocator allocator) { _manager.setProperty(XMLInputFactory.ALLOCATOR, allocator); }
public Object getProperty(java.lang.String name) throws IllegalArgumentException { if (_manager != null) { return _manager.getProperty(name); } return null; }
public StAXManager(int context) { switch(context){ case CONTEXT_READER:{ initConfigurableReaderProperties(); break; } case CONTEXT_WRITER:{ initWriterProps(); break; } } }
public Object getProperty(String name){ checkProperty(name); return features.get(name); }
public boolean isPropertySupported(String name) { if(name == null) return false ; else return _manager.containsProperty(name); }