|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ibm.as400.access.IFSFile
The IFSFile class represents
an object in the integrated file system on the server.
As in java.io.File, IFSFile is designed to work
with the object as a whole. For example, use IFSFile
to delete or rename a file, to access the
file's attributes (is the object a file or a directory,
when was the file last changed, is the file hidden, etc.),
or to list the contents of a directory.
Use IFSFileInputStream or
IFSRandomAccessFile to read
data from the file, and IFSFileOutputStream or
IFSRandomAccessFile
to write data to the file.
Note that both isFile and isDirectory
will return false for invalid symbolic links.
IFSFile objects are capable of generating file events that call the following FileListener methods: fileDeleted() and fileModified().
The following example demonstrates the use of IFSFile:
// Work with /Dir/File.txt on the system myAS400.
AS400 as400 = new AS400("myAS400");
IFSFile file = new IFSFile(as400, "/Dir/File.txt");
// Determine the parent directory of the file.
String directory = file.getParent();
// Determine the name of the file.
String name = file.getName();
// Determine the file size.
long length = file.length();
// Determine when the file was last modified.
Date date = new Date(file.lastModified());
// Delete the file.
if (file.delete() == false)
{
// Display the error code.
System.out.println("Unable to delete file.");
}
Note: Because of a host server restriction, you cannot access files in QTEMP.LIB.
FileEvent,
addFileListener(com.ibm.as400.access.FileListener),
removeFileListener(com.ibm.as400.access.FileListener),
IFSFileInputStream,
IFSFileOutputStream,
IFSRandomAccessFile,
Serialized Form| Field Summary | |
static java.lang.String |
pathSeparator
The integrated file system path separator string used to separate paths in a path list. |
static char |
pathSeparatorChar
The integrated file system path separator character used to separate paths in a path list. |
static java.lang.String |
separator
The integrated file system directory separator string used to separate directory/file components in a path. |
static char |
separatorChar
The integrated file system directory separator character used to separate directory/file components in a path. |
| Constructor Summary | |
IFSFile()
Constructs an IFSFile object. |
|
IFSFile(AS400 system,
IFSFile directory,
java.lang.String name)
Constructs an IFSFile object. |
|
IFSFile(AS400 system,
IFSJavaFile directory,
java.lang.String name)
Constructs an IFSFile object. |
|
IFSFile(AS400 system,
java.lang.String path)
Constructs an IFSFile object. |
|
IFSFile(AS400 system,
java.lang.String directory,
java.lang.String name)
Constructs an IFSFile object. |
|
| Method Summary | |
void |
addFileListener(FileListener listener)
Adds a file listener to receive file events from this IFSFile. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds a vetoable change listener. |
boolean |
canRead()
Determines if the applet or application can read from the integrated file system object represented by this object. |
boolean |
canWrite()
Determines if the applet or application can write to the integrated file system object represented by this object. |
void |
clearCachedAttributes()
Clear the cached attributes. |
int |
compareTo(java.lang.Object obj)
Compares the path of this IFSFile with an Object's path.
|
boolean |
copyTo(java.lang.String path)
Copies this file or directory to the specified file or directory on the server. |
long |
created()
Determines the time that the integrated file system object represented by this object was created. |
boolean |
createNewFile()
Atomically create a new, empty file. |
boolean |
delete()
Deletes the integrated file system object represented by this object. |
java.util.Enumeration |
enumerateFiles()
Lists the integrated file system objects in the directory represented by this object. |
java.util.Enumeration |
enumerateFiles(IFSFileFilter filter)
Lists the integrated file system objects in the directory represented by this object that satisfy filter. |
java.util.Enumeration |
enumerateFiles(IFSFileFilter filter,
java.lang.String pattern)
Lists the integrated file system objects in the directory represented by this object that satisfy filter. |
java.util.Enumeration |
enumerateFiles(java.lang.String pattern)
Lists the integrated file system objects in the directory represented by this object. |
boolean |
equals(java.lang.Object obj)
Determines if two IFSFile objects are equal. |
boolean |
exists()
Determines if the integrated file system object represented by this object exists. |
java.lang.String |
getAbsolutePath()
Returns the path name of the integrated file system object represented by this object. |
java.lang.String |
getCanonicalPath()
Returns the path name of the integrated file system object represented by this object. |
int |
getCCSID()
Returns the file's CCSID. |
java.lang.String |
getFileSystem()
Returns the full path of the object. |
long |
getFreeSpace()
Determines the amount of unused storage space in the file system. |
java.lang.String |
getName()
Determines the name of the integrated file system object represented by this object. |
int |
getOwnerId()
Deprecated. Use getOwnerUID() instead. |
long |
getOwnerUID()
Returns the "user ID number" of the owner of the integrated file system file. |
java.lang.String |
getParent()
Returns the parent directory of the integrated file system object represented by this object. |
java.lang.String |
getPath()
Returns the path of the integrated file system object represented by this object. |
Permission |
getPermission()
Returns the permission of the object. |
java.lang.String |
getSubtype()
Returns the subtype of the integrated file system object represented by this object. |
AS400 |
getSystem()
Returns the system that this object references. |
int |
hashCode()
Computes a hash code for this object. |
boolean |
isAbsolute()
Determines if the path name of this integrated file system object is an absolute path name. |
boolean |
isDirectory()
Determines if the integrated file system object represented by this object is a directory. |
boolean |
isFile()
Determines if the integrated file system object represented by this object is a "normal" file. |
boolean |
isHidden()
Determines if the integrated file system object represented by this object is hidden. |
boolean |
isReadOnly()
Determines if the integrated file system object represented by this object is read only. |
boolean |
isSymbolicLink()
Determines if the integrated file system object represented by this object is a symbolic link. |
long |
lastAccessed()
Determines the time that the integrated file system object represented by this object was last accessed. |
long |
lastModified()
Determines the time that the integrated file system object represented by this object was last modified. |
long |
length()
Determines the length of the integrated file system object represented by this object. |
java.lang.String[] |
list()
Lists the integrated file system objects in the directory represented by this object. |
java.lang.String[] |
list(IFSFileFilter filter)
Lists the integrated file system objects in the directory represented by this object that satisfy filter. |
java.lang.String[] |
list(IFSFileFilter filter,
java.lang.String pattern)
Lists the integrated file system objects in the directory represented by this object that satisfy filter. |
java.lang.String[] |
list(java.lang.String pattern)
Lists the integrated file system objects in the directory represented by this object that match pattern. |
IFSFile[] |
listFiles()
Lists the integrated file system objects in the directory represented by this object. |
IFSFile[] |
listFiles(IFSFileFilter filter)
Lists the integrated file system objects in the directory represented by this object that satisfy filter. |
IFSFile[] |
listFiles(IFSFileFilter filter,
java.lang.String pattern)
Lists the integrated file system objects in the directory represented by this object that satisfy filter. |
IFSFile[] |
listFiles(java.lang.String pattern)
Lists the integrated file system objects in the directory represented by this object that match pattern. |
boolean |
mkdir()
Creates an integrated file system directory whose path name is specified by this object. |
boolean |
mkdirs()
Creates an integrated file system directory whose path name is specified by this object. |
void |
removeFileListener(FileListener listener)
Removes a file listener so that it no longer receives file events from this IFSFile. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes a vetoable change listener. |
boolean |
renameTo(IFSFile file)
Renames the integrated file system object specified by this object to have the path name of file. |
boolean |
setHidden()
Marks the integrated file system object represented by this object as hidden. |
boolean |
setHidden(boolean attribute)
Changes the hidden attribute of the integrated file system object represented by this object. |
boolean |
setLastModified(long time)
Changes the last modified time of the integrated file system object represented by this object to time. |
boolean |
setLength(int length)
Sets the length of the integrated file system object represented by this object. |
void |
setPath(java.lang.String path)
Sets the file path. |
void |
setPermission(Permission permission)
Sets the permission of the object. |
boolean |
setReadOnly()
Marks the integrated file system object represented by this object so that only read operations are allowed. |
boolean |
setReadOnly(boolean attribute)
Changes the read only attribute of the integrated file system object represented by this object. |
void |
setSystem(AS400 system)
Sets the system. |
java.lang.String |
toString()
Generates a String representation of this object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String pathSeparator
public static final char pathSeparatorChar
public static final java.lang.String separator
public static final char separatorChar
| Constructor Detail |
public IFSFile()
public IFSFile(AS400 system,
IFSFile directory,
java.lang.String name)
system - The AS400 that contains the file.directory - The directory.name - The file name.
public IFSFile(AS400 system,
java.lang.String path)
system - The AS400 that contains the file.path - The file path name.
public IFSFile(AS400 system,
java.lang.String directory,
java.lang.String name)
system - The AS400 that contains the file.name - The file name.
public IFSFile(AS400 system,
IFSJavaFile directory,
java.lang.String name)
system - The AS400 that contains the file.directory - The directory.name - The file name.| Method Detail |
public void addFileListener(FileListener listener)
listener - The file listener.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The property change listener to add.public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - The vetoable change listener to add.
public boolean canRead()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean canWrite()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOExceptionpublic void clearCachedAttributes()
listFiles()public int compareTo(java.lang.Object obj)
Object's path.
If the other object is not an IFSFile or java.io.File,
this method throws a ClassCastException, since
IFSFile is comparable only to IFSFile and java.io.File.
Note:
The comparison is case sensitive.
compareTo in interface java.lang.Comparableobj - The Object to be compared.
0 if this IFSFile path equals the argument's path;
a value less than 0 if this IFSFile path is less than the argument's
path; and a value greater than 0 if this IFSFile path is greater
than the argument's path.
public boolean copyTo(java.lang.String path)
throws java.io.IOException,
AS400SecurityException,
ObjectAlreadyExistsException
path - The destination path to copy this IFSFile to.
java.io.IOException
AS400SecurityException
ObjectAlreadyExistsException
public long created()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean createNewFile()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean delete()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public java.util.Enumeration enumerateFiles(IFSFileFilter filter,
java.lang.String pattern)
throws java.io.IOException
filter - A file object filter.pattern - The pattern that all filenames must match. Acceptable
characters are wildcards (*) and question marks (?).
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public java.util.Enumeration enumerateFiles(java.lang.String pattern)
throws java.io.IOException
pattern - The pattern that all filenames must match. Acceptable
characters are wildcards (*) and question marks (?).
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public java.util.Enumeration enumerateFiles(IFSFileFilter filter)
throws java.io.IOException
filter - A file object filter.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public java.util.Enumeration enumerateFiles()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object with which to compare.
public boolean exists()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOExceptionpublic java.lang.String getAbsolutePath()
public java.lang.String getCanonicalPath()
public int getCCSID()
throws java.io.IOException
java.io.IOException - If an error occurs while communicating with the server.public java.lang.String getFileSystem()
public long getFreeSpace()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOExceptionpublic java.lang.String getName()
public long getOwnerUID()
throws java.io.IOException
java.io.IOException - If an error occurs while communicating with the server.
public int getOwnerId()
throws java.io.IOException
java.io.IOException - If an error occurs while communicating with the server.public java.lang.String getParent()
public java.lang.String getPath()
public Permission getPermission()
throws AS400Exception,
AS400SecurityException,
ConnectionDroppedException,
ErrorCompletingRequestException,
java.lang.InterruptedException,
ObjectDoesNotExistException,
java.io.IOException,
java.io.UnsupportedEncodingException
AS400Exception - If the server returns an error message.
AS400SecurityException - If a security or authority error occurs.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ErrorCompletingRequestException - If an error occurs before the request is completed.
java.lang.InterruptedException - If this thread is interrupted.
java.io.IOException - If an error occurs while communicating with the server.
ObjectDoesNotExistException - If the object does not exist on the server.
java.net.UnknownHostException - If the server cannot be located.
java.io.UnsupportedEncodingExceptionsetPermission(com.ibm.as400.access.Permission)
public java.lang.String getSubtype()
throws java.io.IOException,
AS400SecurityException
ExtendedIOException - If an error occurs while communicating with the server.
AS400SecurityException - If a security or authority error occurs.
java.io.IOExceptionpublic AS400 getSystem()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isAbsolute()
public boolean isDirectory()
throws java.io.IOException
isFile will return false
for invalid symbolic links.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean isFile()
throws java.io.IOException
isDirectory and isFile() will return false
for invalid symbolic links.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean isHidden()
throws java.io.IOException,
AS400SecurityException
AS400SecurityException - If a security or authority error occurs.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean isSymbolicLink()
throws java.io.IOException,
AS400SecurityException
isDirectory and isFile resolve symbolic links to their ultimate destination. For example, if this object represents a symbolic link on the server, that resolves to a file object, then isSymbolicLink() will return true, isFile() will return true, and isDirectory() will return false.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
AS400SecurityException
public boolean isReadOnly()
throws java.io.IOException,
AS400SecurityException
AS400SecurityException - If a security or authority error occurs.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public long lastAccessed()
throws java.io.IOException
listFiles methods, attribute
information is cached and will not be automatically refreshed from the server.
This means the reported last accessed time may become inconsistent with the server.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public long lastModified()
throws java.io.IOException
listFiles methods, attribute
information is cached and will not be automatically refreshed from the server.
This means the reported last modified time may become inconsistent with the server.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public long length()
throws java.io.IOException
listFiles methods, attribute
information is cached and will not be automatically refreshed from the server.
This means the reported length may become inconsistent with the server.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public java.lang.String[] list()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOExceptionlistFiles()
public java.lang.String[] list(IFSFileFilter filter)
throws java.io.IOException
filter - A file object filter. If null, then no filtering is done.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOExceptionlistFiles(IFSFileFilter)
public java.lang.String[] list(IFSFileFilter filter,
java.lang.String pattern)
throws java.io.IOException
filter - A file object filter.pattern - The pattern that all filenames must match. Acceptable characters
are wildcards (*) and
question marks (?).
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOExceptionlistFiles(IFSFileFilter,String)
public java.lang.String[] list(java.lang.String pattern)
throws java.io.IOException
pattern - The pattern that all filenames must match. Acceptable
characters are wildcards (*) and
question marks (?).
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOExceptionlistFiles(String)
public IFSFile[] listFiles()
throws java.io.IOException
list method, but attribute information may become inconsistent with the server.
When the IFSFile object represents the root of the QSYS file system, this method may return a partial list of the contents of the directory.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public IFSFile[] listFiles(IFSFileFilter filter)
throws java.io.IOException
list method, but attribute information may become inconsistent with the server.
When the IFSFile object represents the root of the QSYS file system, this method may return a partial list of the contents of the directory.
filter - A file object filter.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public IFSFile[] listFiles(IFSFileFilter filter,
java.lang.String pattern)
throws java.io.IOException
list method, but attribute information may become inconsistent with the server.
When pattern is "*" and the IFSFile object represents the root of the QSYS file system, this method may return a partial list of the contents of the directory.
filter - A file object filter.pattern - The pattern that all filenames must match. Acceptable
characters are wildcards (*) and
question marks (?).
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public IFSFile[] listFiles(java.lang.String pattern)
throws java.io.IOException
list method, but attribute information may become inconsistent with the server.
When pattern is "*" and the IFSFile object represents the root of the QSYS file system, this method may return a partial list of the contents of the directory.
pattern - The pattern that all filenames must match. Acceptable characters
are wildcards (*) and
question marks (?).
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean mkdir()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean mkdirs()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOExceptionpublic void removeFileListener(FileListener listener)
listener - The file listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The property change listener to remove.public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - The vetoable change listener to remove.
public boolean renameTo(IFSFile file)
throws java.io.IOException,
java.beans.PropertyVetoException
file - The new file name.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
java.beans.PropertyVetoException - If the change is vetoed.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean setHidden()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean setHidden(boolean attribute)
throws java.io.IOException
attribute - True to set the hidden attribute of the file.
False to turn off the hidden attribute.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean setLastModified(long time)
throws java.io.IOException,
java.beans.PropertyVetoException
time - The desired last modification time (measured in milliseconds
since January 1, 1970 00:00:00 GMT), or 0 to leave the last modification
time unchanged, or -1 to set the last modification time to the current system time.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.beans.PropertyVetoException - If the change is vetoed.
java.io.IOException
public boolean setLength(int length)
throws java.io.IOException
length - The new length, in bytes.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public void setPath(java.lang.String path)
throws java.beans.PropertyVetoException
path - The absolute file path.
java.beans.PropertyVetoException - If the change is vetoed.
public void setPermission(Permission permission)
throws AS400Exception,
AS400SecurityException,
ConnectionDroppedException,
ErrorCompletingRequestException,
java.lang.InterruptedException,
java.io.IOException,
ObjectDoesNotExistException,
ServerStartupException,
java.beans.PropertyVetoException,
java.net.UnknownHostException
permission - The permission that will be set to the object.
AS400Exception - If the server returns an error message.
AS400SecurityException - If a security or authority error occurs.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ErrorCompletingRequestException - If an error occurs before the request is completed.
java.lang.InterruptedException - If this thread is interrupted.
java.io.IOException - If an error occurs while communicating with the server.
ObjectDoesNotExistException - If the object does not exist on the server.
java.beans.PropertyVetoException - If the change is vetoed.
java.net.UnknownHostException - If the server cannot be located.
ServerStartupExceptiongetPermission()
public boolean setReadOnly()
throws java.io.IOException
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public boolean setReadOnly(boolean attribute)
throws java.io.IOException
attribute - True to set the read only attribute of the file such that
the file cannot be changed. False to set the read only
attributes such that the file can be changed.
ConnectionDroppedException - If the connection is dropped unexpectedly.
ExtendedIOException - If an error occurs while communicating with the server.
java.io.InterruptedIOException - If this thread is interrupted.
ServerStartupException - If the server cannot be started.
java.net.UnknownHostException - If the server cannot be located.
java.io.IOException
public void setSystem(AS400 system)
throws java.beans.PropertyVetoException
system - The server object.
java.beans.PropertyVetoException - If the change is vetoed.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||