|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vgrs.xcode.util.Datafile
public class Datafile
Utility methods for retrieving data from files or resources.
| Field Summary | |
|---|---|
static java.lang.String |
GZIP_SUFFIX
|
static java.lang.String |
ZIP_SUFFIX
|
| Constructor Summary | |
|---|---|
Datafile()
|
|
| Method Summary | |
|---|---|
static java.util.Iterator<java.lang.String> |
getGzipIterator(java.io.File aFile)
Retrieve an Iterator over the lines in file. |
static java.util.Iterator<java.lang.String> |
getGzipIterator(java.lang.String aResource)
Retrieve an Iterator over the lines in resource. |
static java.util.Iterator<java.lang.String> |
getIterator(java.io.File aFile)
Retrieve an Iterator over the lines in file. |
static java.util.Iterator<java.lang.String> |
getIterator(java.lang.String aResource)
Retrieve an Iterator over the lines in resource. |
static java.util.Iterator<java.lang.String> |
getTxtIterator(java.io.File aFile)
Retrieve an Iterator over the lines in file. |
static java.util.Iterator<java.lang.String> |
getTxtIterator(java.lang.String aResource)
Retrieve an Iterator over the lines in resource. |
static java.util.Iterator<java.lang.String> |
getZipIterator(java.io.File aFile)
Retrieve an Iterator over the lines in file. |
static java.util.Iterator<java.lang.String> |
getZipIterator(java.lang.String aResource)
Retrieve an Iterator over the lines in resource. |
static java.util.Iterator<java.lang.String> |
getZipIterator(java.util.zip.ZipInputStream aStream)
Retrieve an Iterator over the lines in inputstream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GZIP_SUFFIX
public static final java.lang.String ZIP_SUFFIX
| Constructor Detail |
|---|
public Datafile()
| Method Detail |
|---|
public static java.util.Iterator<java.lang.String> getGzipIterator(java.io.File aFile)
throws XcodeException
file.
aFile - A location on local disk which has been gzipped
file
XcodeException - If the file cannot be read
public static java.util.Iterator<java.lang.String> getGzipIterator(java.lang.String aResource)
throws XcodeException
resource.
aResource - A location on the classpath which has been gzipped
resource
XcodeException - If the resource cannot be read
public static java.util.Iterator<java.lang.String> getIterator(java.io.File aFile)
throws XcodeException
file.
aFile - A location on local disk
file
XcodeException - If the file cannot be read
public static java.util.Iterator<java.lang.String> getIterator(java.lang.String aResource)
throws XcodeException
resource.
aResource - A location on the classpath
resource
XcodeException - If the resource cannot be read
public static java.util.Iterator<java.lang.String> getTxtIterator(java.io.File aFile)
throws XcodeException
file.
aFile - A location on local disk
file
XcodeException - If the file cannot be read
public static java.util.Iterator<java.lang.String> getTxtIterator(java.lang.String aResource)
throws XcodeException
resource.
aResource - A location on the classpath
resource
XcodeException - If the resource cannot be read
public static java.util.Iterator<java.lang.String> getZipIterator(java.io.File aFile)
throws XcodeException
file.
aFile - A location on local disk which has been zipped
file
XcodeException - If the file cannot be read
public static java.util.Iterator<java.lang.String> getZipIterator(java.lang.String aResource)
throws XcodeException
resource.
aResource - A location on the classpath which has been zipped
resource
XcodeException - If the resource cannot be read
public static java.util.Iterator<java.lang.String> getZipIterator(java.util.zip.ZipInputStream aStream)
throws java.io.IOException
inputstream.
aStream - An InputStream which has been zipped
stream
java.io.IOException - If the stream cannot be read
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||