|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.FileNotFoundException
de.schlichtherle.io.FileBusyException
public class FileBusyException
Thrown if an archive entry cannot get accessed because either (a) the client application is trying to input or output to the same archive file concurrently and the respective archive driver does not support this, or (b) the archive file needs an implicit unmount which cannot get performed because the client application is still using some other open streams for the same archive file.
In order to recover from this exception, client applications may call
File.umount()
or File.update()
in order to force all
entry streams for all archive files to close and prepare to catch the
resulting ArchiveBusyWarningException
.
A subsequent try to create the archive entry stream will then succeed
unless other exceptional conditions apply.
However, if the client application is still using a disconnected stream,
it will receive an ArchiveEntryStreamClosedException
on the next
call to any other method than close()
.
FileInputStream
,
FileOutputStream
,
Serialized FormConstructor Summary | |
---|---|
|
FileBusyException(ArchiveBusyException cause)
Deprecated. You should not use this constructor. It will have package private access in the next major version. |
|
FileBusyException(InputArchiveBusyException cause)
Deprecated. You should not use this constructor. It will vanish in the next major version. |
|
FileBusyException(OutputArchiveBusyException cause)
Deprecated. You should not use this constructor. It will vanish in the next major version. |
protected |
FileBusyException(String msg)
For use by InputArchiveBusyException and
OutputArchiveBusyException only. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected FileBusyException(String msg)
InputArchiveBusyException
and
OutputArchiveBusyException
only.
public FileBusyException(InputArchiveBusyException cause)
public FileBusyException(OutputArchiveBusyException cause)
public FileBusyException(ArchiveBusyException cause)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |