JavaTM 2 Platform
Standard Ed. 6

javax.imageio.metadata
类 IIOInvalidTreeException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.io.IOException
              继承者 javax.imageio.IIOException
                  继承者 javax.imageio.metadata.IIOInvalidTreeException
所有已实现的接口:
Serializable

public class IIOInvalidTreeException
extends IIOException

IIOMetadata 对象尝试解析 IIOMetadataNode 的树失败时,将抛出 IIOInvalidTreeException。导致解析错误的节点可能被存储起来。与任何解析错误一样,实际错误发生点可能不同于检测到的错误发生点。getOffendingNode 返回的节点只能视为问题实质的线索。

另请参见:
IIOMetadata.setFromTree(java.lang.String, org.w3c.dom.Node), IIOMetadata.mergeTree(java.lang.String, org.w3c.dom.Node), IIOMetadataNode, 序列化表格

字段摘要
protected  Node offendingNode
          导致解析错误的 Node,或 null
 
构造方法摘要
IIOInvalidTreeException(String message, Node offendingNode)
          构造一个 IIOInvalidTreeException,使其具有消息字符串和对导致解析错误的 Node 的引用。
IIOInvalidTreeException(String message, Throwable cause, Node offendingNode)
          构造一个 IIOInvalidTreeException,使其具有消息字符串、对导致此异常的异常的引用和导致解析错误的 Node 的引用。
 
方法摘要
 Node getOffendingNode()
          返回导致解析错误的 Node
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

offendingNode

protected Node offendingNode
导致解析错误的 Node,或 null

构造方法详细信息

IIOInvalidTreeException

public IIOInvalidTreeException(String message,
                               Node offendingNode)
构造一个 IIOInvalidTreeException,使其具有消息字符串和对导致解析错误的 Node 的引用。

参数:
message - 包含解析错误的原因的 String
offendingNode - 导致异常的 DOM Node,或 null

IIOInvalidTreeException

public IIOInvalidTreeException(String message,
                               Throwable cause,
                               Node offendingNode)
构造一个 IIOInvalidTreeException,使其具有消息字符串、对导致此异常的异常的引用和导致解析错误的 Node 的引用。

参数:
message - 包含解析错误的原因的 String
cause - 导致发生此异常的 ThrowableErrorException),或 null
offendingNode - 导致异常的 DOM Node,或 null
方法详细信息

getOffendingNode

public Node getOffendingNode()
返回导致解析错误的 Node

返回:
损坏的 Node

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only