|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.rej.files.FileSet
public abstract class FileSet
FileSet
objects model sets of files, such as a single file, a
folder (and subfolders) or an archive file. For implementing classes, note
that the path elements of the files contained within a fileset must be
delimited by a forward slahs '/' in order for some of the other
funcionalities, such as refactoring to work.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
FileSet()
|
Method Summary | |
---|---|
abstract void |
addFile(java.lang.String filename)
Add a file to the set. |
abstract void |
close()
Close the FileSet. |
boolean |
equals(java.lang.Object other)
|
long |
getChecksum()
A checksum of the fileset used to invalidate cached class indices for fast searching. |
abstract java.lang.String |
getClasspath(java.lang.String mainClass)
|
void |
getContentsFrom(FileSet fs)
|
abstract java.util.List<java.lang.String> |
getContentsList()
Get the contents of this file set, ie. the list of files that are included in this set. |
abstract byte[] |
getData(java.lang.String file)
Get the contents of file belonging in this set, identified by file. |
abstract java.io.InputStream |
getInputStream(java.lang.String file)
Get an InputStream to contents of a file in this set, identified by file. |
abstract long |
getLength(java.lang.String file)
Get the length of the file in this set identified by file. |
abstract java.lang.String |
getName()
Return the name of the set. |
int |
hashCode()
|
abstract void |
refresh()
Refresh the FileSet, loading the contents from the filesystem |
abstract void |
removeAllFiles()
|
abstract void |
removeFile(java.lang.String filename)
Remove file denoted by filename from the set. |
abstract void |
save(Modifications ms)
|
abstract void |
saveAs(java.io.File file,
Modifications ms)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public FileSet()
Method Detail |
---|
public abstract java.util.List<java.lang.String> getContentsList()
public abstract byte[] getData(java.lang.String file) throws java.io.IOException
file
- String the file to get
java.io.IOException
- Some of the internal I/O caused an exceptionpublic abstract java.lang.String getName()
public abstract java.io.InputStream getInputStream(java.lang.String file) throws java.io.IOException
file
- String the file to get
java.io.IOException
- Some of the internal I/O caused an exceptionpublic abstract long getLength(java.lang.String file) throws java.io.IOException
file
- String name of the file whose size is requested.
java.io.IOException
- Underlying I/O caused an exceptionpublic abstract void close() throws java.io.IOException
java.io.IOException
- I/O problem closing the FileSetpublic abstract void removeFile(java.lang.String filename)
filename
- String file to removepublic abstract void addFile(java.lang.String filename)
filename
- String file to addpublic abstract void refresh() throws java.io.IOException
java.io.IOException
- I/O problem during refreshpublic long getChecksum() throws java.io.IOException
java.io.IOException
- A problem in the I/O processing.public abstract void save(Modifications ms) throws java.io.IOException
java.io.IOException
public abstract void saveAs(java.io.File file, Modifications ms) throws java.io.IOException
java.io.IOException
public abstract void removeAllFiles() throws java.io.IOException
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public void getContentsFrom(FileSet fs) throws java.io.IOException
java.io.IOException
public abstract java.lang.String getClasspath(java.lang.String mainClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |