public class BatchFile
extends java.lang.Object
Constructor and Description |
---|
BatchFile() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFilename(java.lang.String batchFileLine)
Returns the file name portion of a line in a batch file.
|
static java.util.List<java.lang.String> |
getLines(java.lang.String batchFile)
Returns a List of the lines in a batch file.
|
static java.util.List<java.lang.String> |
getLines(java.lang.String batchFile,
int skip)
Returns a List of the lines in a batch file.
|
static java.lang.String |
getReference(java.lang.String batchFileLine)
Returns the reference string portion of a line in a batch file.
|
public static java.util.List<java.lang.String> getLines(java.lang.String batchFile) throws java.io.IOException
batchFile
- the batch file to readjava.io.IOException
- if something went wrongpublic static java.util.List<java.lang.String> getLines(java.lang.String batchFile, int skip) throws java.io.IOException
batchFile
- the batch file to readskip
- the number of lines to skip between itemsjava.io.IOException
- if something went wrongpublic static java.lang.String getFilename(java.lang.String batchFileLine)
batchFileLine
- the source linepublic static java.lang.String getReference(java.lang.String batchFileLine)
batchFileLine
- the source line