Java 8 SAXNotSupportedException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 SAXNotSupportedException class.

This code example shows how to use the following methods:
 
  public void setFeature(String name, boolean value)
    throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException 
  { 
    if (!FEATURE_NAMES.contains(name))
      throw new SAXNotSupportedException(name);
    features.put(name, value ? Boolean.TRUE : Boolean.FALSE);
  } 
 
  public boolean getFeature(String name)
    throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException 
  { 
    if (!FEATURE_NAMES.contains(name))
      throw new SAXNotSupportedException(name);
    Boolean value = (Boolean) features.get(name);
    return (value == null) ? false : value.booleanValue();
  } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
  } 
 
  public Parser getParser () 
    throws SAXException 
  { 
    throw new SAXNotSupportedException ("SAX version 1 not supported"); 
  } 
 
  public XMLReader getXMLReader () 
    throws SAXException 
  { 
    return new GnomeXMLReader (namespaceAware, validating); 
  } 
 
  public Object getProperty (String name) 
    throws SAXNotRecognizedException, SAXNotSupportedException 
  { 
    GnomeXMLReader.checkPropertyName (name); 
    throw new SAXNotSupportedException (name); 
  } 
6
CodeRank
This code example shows how to use the following methods:
		else if (IS_STANDALONE_FEATURE_NAME.equals(name)) {
			if (this.isStandalone != null) {
				return this.isStandalone;
			} 
			else { 
				throw new SAXNotSupportedException("startDocument() callback not completed yet");
			} 
		} 
		else { 
			return super.getFeature(name);
		} 
	} 
 
	@Override 
	public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException {
		if (NAMESPACES_FEATURE_NAME.equals(name)) {
			this.namespacesFeature = value;
		} 
		else if (NAMESPACE_PREFIXES_FEATURE_NAME.equals(name)) {
			this.namespacePrefixesFeature = value;
6
CodeRank
This code example shows how to use the following methods:getMessage
 
    public void testSAXNotSupportedException_String() { 
        SAXNotSupportedException e = new SAXNotSupportedException(ERR);
        assertEquals(ERR, e.getMessage());
 
        e = new SAXNotSupportedException(null);
        assertNull(e.getMessage());
    } 
 
} 
5
CodeRank
This code example shows how to use the following methods:
 
  public Object getProperty (String name) 
    throws SAXNotRecognizedException, SAXNotSupportedException 
  { 
    GnomeXMLReader.checkPropertyName (name); 
    throw new SAXNotSupportedException (name); 
  } 
 
  public void setProperty (String name, Object value) 
    throws SAXNotRecognizedException, SAXNotSupportedException 
  { 
    GnomeXMLReader.checkPropertyName (name); 
    throw new SAXNotSupportedException (name); 
  } 
 
  public boolean isNamespaceAware () 
  { 
    return namespaceAware; 
  } 
 
5
CodeRank
This code example shows how to use the following methods:
 
  public void setFeature(String name, boolean value)
    throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException 
  { 
    if (!FEATURE_NAMES.contains(name))
      throw new SAXNotSupportedException(name);
    features.put(name, value ? Boolean.TRUE : Boolean.FALSE);
  } 
 
  public boolean getFeature(String name) 
    throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException   
  { 
    if (!FEATURE_NAMES.contains(name))
      throw new SAXNotSupportedException(name);
    Boolean value = (Boolean) features.get(name);
    return (value == null) ? false : value.booleanValue();
  } 
   
} 
5
CodeRank
This code example shows how to use the following methods:
		else if (IS_STANDALONE_FEATURE_NAME.equals(name)) {
			if (this.isStandalone != null) {
				return this.isStandalone;
			} 
			else { 
				throw new SAXNotSupportedException("startDocument() callback not completed yet");
			} 
		} 
		else { 
			throw new SAXNotRecognizedException(name);
		} 
	} 
 
	@Override 
	public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException {
		if (NAMESPACES_FEATURE_NAME.equals(name)) {
			this.namespacesFeature = value;
		} 
		else if (NAMESPACE_PREFIXES_FEATURE_NAME.equals(name)) {
			this.namespacePrefixesFeature = value;
4
CodeRank
This code example shows how to use the following methods:
     * 
     * @throws SAXException 
     * @throws SAXNotSupportedException 
     */ 
    public void characters(String text) throws SAXException {
        throw new SAXNotSupportedException("Should overide this method.");
    } 
 
    /** 
     * handles SAX end Element events. this is an opportunity to complete some 
     * post-processing 
     * 
     * @param namespaceURI 
     * @param localName 
     * 
     * @throws SAXException 
     * 
     */ 
    public abstract void endElement(String namespaceURI, String localName)
        throws SAXException;
5
CodeRank
This code example shows how to use the following methods:
     * 
     * @throws SAXException 
     * @throws SAXNotSupportedException 
     */ 
    public void characters(String text) throws SAXException {
        throw new SAXNotSupportedException("Should overide this method.");
    } 
 
    /** 
     * handles SAX end Element events. this is an opportunity to complete some 
     * post-processing 
     * 
     * @param namespaceURI 
     * @param localName 
     * 
     * @throws SAXException 
     * 
     */ 
    public abstract void endElement(String namespaceURI, String localName)
        throws SAXException; 
4
CodeRank
This code example shows how to use the following methods:
     * @throws SAXNotSupportedException 
     * 
     * @see endElement(String,String)). 
     */ 
    public void characters(String text) throws SAXException {
        throw new SAXNotSupportedException("Should overide this method.");
    } 
 
    /** 
     * handles SAX end Element events. This matches the end of the element 
     * declaration in the document ... and responds to the event generated by 
     * the SAX parser. This is an opportunity to complete some 
     * post-processing. 
     * 
     * @param namespaceURI 
     * @param localName 
     * @param hints DOCUMENT ME! 
     * 
     * @throws SAXException 
     * @throws OperationNotSupportedException 
4
CodeRank
See Code Examples for Java 8 SAXNotSupportedException Methods: