|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pds.label.PDSUtil
public class PDSUtil
PDSUtil is a class that contains utility methods which are useful for working with instances of PDSLabel and PDS labeled products.
Constructor Summary | |
---|---|
PDSUtil()
Creates and instance of a PDSUtil |
Method Summary | |
---|---|
boolean |
loadFile(java.lang.String pathName)
Reads the contents of a file as a set of text strings terminated with a newline character. |
void |
pad(int length)
Pad each line with spaces to the given length. |
boolean |
padFile(java.lang.String pathName,
int length)
Reads the contents of a file and pads each line to the have the given length. |
void |
trimRight()
Trim any white space from the right side of each line. |
boolean |
writeFile(java.lang.String pathName)
Writes the lines to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDSUtil()
Method Detail |
---|
public boolean padFile(java.lang.String pathName, int length)
pathName
- the fully qualified path and name of the file to parse.length
- the number of characters each line must have.
true
if the file could be opened;
false
otherwise.public void pad(int length)
length
- the number of characters each line must have.public void trimRight()
public boolean loadFile(java.lang.String pathName)
pathName
- the fully qualified path and name of the file to parse.
true
if the file could be opened;
false
otherwise.public boolean writeFile(java.lang.String pathName)
pathName
- the fully qualified path and name of the file to parse.
true
if the file could be opened;
false
otherwise.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |