|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpmlib.PMLTools
public class PMLTools
PMLTools Class
The PMTools object provides a range of static utility functions.
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.
Constructor Summary | |
---|---|
PMLTools()
|
Method Summary | |
---|---|
static java.lang.String |
combineStrings(java.lang.String[] s)
Combine all the strings within the specified array and return the result |
static java.lang.String |
combineStrings(java.lang.String[] sa,
java.lang.String ss)
Combine all the strings within the specified array with the specified spacer string and return the result |
static java.lang.String[] |
readStrings(java.io.File f)
Converts an input text file to an array of strings |
static java.lang.String[] |
readStrings(java.lang.String f)
Converts an input text file to an array of strings |
static boolean |
writeStrings(java.lang.String[] sa,
java.io.File f)
Write an array of strings to the specified file |
static boolean |
writeStrings(java.lang.String[] sa,
java.lang.String f)
Write an array of strings to the specified file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PMLTools()
Method Detail |
---|
public static java.lang.String[] readStrings(java.lang.String f)
If the input file cannot be parsed a null value will be returned.
f
- file
public static java.lang.String[] readStrings(java.io.File f)
If the input file cannot be parsed a null value will be returned.
f
- file
public static boolean writeStrings(java.lang.String[] sa, java.lang.String f)
sa
- string arrayf
- output file
public static boolean writeStrings(java.lang.String[] sa, java.io.File f)
sa
- string arrayf
- output file
public static java.lang.String combineStrings(java.lang.String[] s)
s
- array of strings
public static java.lang.String combineStrings(java.lang.String[] sa, java.lang.String ss)
sa
- array of stringsss
- spacer string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |