|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.evccit.utils.XImageSize
Constructor Summary | |
XImageSize()
|
Method Summary | |
static org.apache.xpath.NodeSet |
getDimensions(org.w3c.dom.NodeList fileNameList)
Create <imageSize> element(s) for a file or files given in a node list. |
static org.apache.xpath.NodeSet |
getDimensions(org.w3c.dom.NodeList basePathList,
org.w3c.dom.NodeList fileNameList)
Create <imageSize> element(s) from a base path name and file list given as NodeLists. |
static org.w3c.dom.Node |
getDimensions(org.w3c.dom.NodeList basePathList,
java.lang.String fileName)
Create <imageSize> element(s) from a base path in a NodeList and fileName in a String. |
static org.w3c.dom.Node |
getDimensions(java.lang.String fileName)
Create an <imageSize> element for a file given its file name. |
static org.apache.xpath.NodeSet |
getDimensions(java.lang.String basePath,
org.w3c.dom.NodeList fileNameList)
Create <imageSize> element(s) from a base path String and fileName NodeList. |
static org.w3c.dom.Node |
getDimensions(java.lang.String pathName,
java.lang.String fileName)
Create an <imageSize> element for a file given its path and file name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XImageSize()
Method Detail |
public static org.w3c.dom.Node getDimensions(java.lang.String fileName)
<imageSize>
element for a file given its file name.
Hands the file name to getDimensionsFrom File( ), which returns a Dimension object.
getDimensions() then creates an <imageSize>
element with a "fileName"
attribute equal to the full path name (with / as the file separator),
and width and height attributes equal to the image file's width and height.
fileName
- Complete path and file name
<imageSize>
elementpublic static org.w3c.dom.Node getDimensions(java.lang.String pathName, java.lang.String fileName)
<imageSize>
element for a file given its path and file name.
Append the filename to the pathName and then call getDimensions( String fileName )
pathName
- Base path name for the filefileName
- File name (without path)
<ImageSize>
elementpublic static org.w3c.dom.Node getDimensions(org.w3c.dom.NodeList basePathList, java.lang.String fileName)
<imageSize>
element(s) from a base path in a NodeList and fileName in a String.
The base path name is the text from the first node in basePathList.
Collect the text from each node in the fileNameList, and pass it with the base path
to getDimensions( String pathName, string fileName ).
basePathList
- A list of nodes, the first of which contains the base path
for all the filesfileName
- A String containing a file name
<imageSize>
elementpublic static org.apache.xpath.NodeSet getDimensions(org.w3c.dom.NodeList fileNameList)
<imageSize>
element(s) for a file or files given in a node list.
Collect the text from each node in the fileNameList, and use it as an argument
to getDimensions( String fileName ).
fileNameList
- A list of nodes, each of whose text content is a file name
<imageSize>
element for each
of the file names in the fileNameList.public static org.apache.xpath.NodeSet getDimensions(org.w3c.dom.NodeList basePathList, org.w3c.dom.NodeList fileNameList)
<imageSize>
element(s) from a base path name and file list given as NodeLists.
The base path name is the text from the first node in basePathList.
Collect the text from each node in the fileNameList, and pass it with the base path
to getDimensions( String pathName, string fileName ).
basePathList
- A list of nodes, the first of which contains the base path
for all the filesfileNameList
- A list of nodes, each of whose text content is a file name
<imageSize>
element for each
of the file names in the fileNameList.public static org.apache.xpath.NodeSet getDimensions(java.lang.String basePath, org.w3c.dom.NodeList fileNameList)
<imageSize>
element(s) from a base path String and fileName NodeList.
Collect the text from each node in the fileNameList, and pass it with the base path
to getDimensions( String pathName, string fileName ).
basePath
- A String containing the base path for all the filesfileNameList
- A list of nodes, each of whose text content is a file name
<imageSize>
element for each
of the file names in the fileNameList.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |