public class PDSUtil
extends java.lang.Object
Constructor and Description |
---|
PDSUtil()
Creates and instance of a PDSUtil
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2008-2009 Regents University of California. All Rights Reserved.