com.alibaba.simpleimage.util
类 NodeUtils
java.lang.Object
com.alibaba.simpleimage.util.NodeUtils
public class NodeUtils
- extends Object
类NodeUtils.java的实现描述:TODO 类实现描述
- 作者:
- wendell 2011-8-29 下午03:13:23
|
方法摘要 |
static Node |
cloneNode(Node node)
Currently only use by GIFStreamMetadata and GIFImageMetadata |
static String |
getAttr(Node node,
String attrName)
|
static Node |
getChild(Node parent,
String nodeName)
|
static double |
getDoubleAttr(Node node,
String attrName)
|
static int |
getIntAttr(Node node,
String attrName)
|
static void |
removeChild(Node parent,
String nodeName)
|
static void |
setAttrValue(Node node,
String attrName,
double value)
|
static void |
setAttrValue(Node node,
String attrName,
int value)
|
static void |
setAttrValue(Node node,
String attrName,
String value)
|
NodeUtils
public NodeUtils()
cloneNode
public static Node cloneNode(Node node)
- Currently only use by GIFStreamMetadata and GIFImageMetadata
- 参数:
node -
- 返回:
getChild
public static Node getChild(Node parent,
String nodeName)
removeChild
public static void removeChild(Node parent,
String nodeName)
setAttrValue
public static void setAttrValue(Node node,
String attrName,
String value)
setAttrValue
public static void setAttrValue(Node node,
String attrName,
int value)
setAttrValue
public static void setAttrValue(Node node,
String attrName,
double value)
getAttr
public static String getAttr(Node node,
String attrName)
getIntAttr
public static int getIntAttr(Node node,
String attrName)
getDoubleAttr
public static double getDoubleAttr(Node node,
String attrName)
Copyright © 2012–2013 Alibaba Group. All rights reserved.