|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.enterprisedt.net.ftp.FTPFileParser com.enterprisedt.net.ftp.VMSFileParser
public class VMSFileParser
Represents a remote OpenVMS file parser. Thanks to Jason Schultz for contributing significantly to this class
Field Summary | |
---|---|
static java.lang.String |
cvsId
Revision control id |
Fields inherited from class com.enterprisedt.net.ftp.FTPFileParser |
---|
ignoreDateParseErrors |
Constructor Summary | |
---|---|
VMSFileParser()
Constructor |
Method Summary | |
---|---|
int |
getBlocksize()
Get the VMS blocksize, used for calculating file sizes |
boolean |
isMultiLine()
Does this parser parse multiple lines to get one listing? |
boolean |
isValidFormat(java.lang.String[] listing)
Valid format for this parser |
boolean |
isVersionInName()
Get the property that controls whether or not the version number is returned as part of the filename, e.g. |
FTPFile |
parse(java.lang.String raw)
Parse server supplied string OUTPUT: |
void |
setBlocksize(int blocksize)
Set the VMS blocksize, used for calculating file sizes. |
void |
setLocale(java.util.Locale locale)
Set the locale for date parsing of listings |
void |
setVersionInName(boolean versionInName)
Set the property that controls whether or not the version number is returned as part of the filename, e.g. |
java.lang.String |
toString()
|
Methods inherited from class com.enterprisedt.net.ftp.FTPFileParser |
---|
setIgnoreDateParseErrors, split, split, split, trimStart |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String cvsId
Constructor Detail |
---|
public VMSFileParser()
Method Detail |
---|
public boolean isMultiLine()
isMultiLine
in class FTPFileParser
public int getBlocksize()
public void setBlocksize(int blocksize)
blocksize
- new blocksizepublic boolean isVersionInName()
public void setVersionInName(boolean versionInName)
versionInName
- true if version to be returned as part of the filenamepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean isValidFormat(java.lang.String[] listing)
isValidFormat
in class FTPFileParser
listing
-
public FTPFile parse(java.lang.String raw) throws java.text.ParseException
parse
in class FTPFileParser
raw
- raw string to parse
java.text.ParseException
public void setLocale(java.util.Locale locale)
FTPFileParser
setLocale
in class FTPFileParser
locale
- locale to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |