de.schlichtherle.io
Class FileBusyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.io.FileNotFoundException
                  extended by de.schlichtherle.io.FileBusyException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InputArchiveBusyException, OutputArchiveBusyException

public class FileBusyException
extends FileNotFoundException

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().

Version:
TrueZIP 6.7
Author:
Christian Schlichtherle
See Also:
Using Archive Entry Streams, FileInputStream, FileOutputStream, Serialized Form

Constructor 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

FileBusyException

protected FileBusyException(String msg)
For use by InputArchiveBusyException and OutputArchiveBusyException only.


FileBusyException

public FileBusyException(InputArchiveBusyException cause)
Deprecated. You should not use this constructor. It will vanish in the next major version.


FileBusyException

public FileBusyException(OutputArchiveBusyException cause)
Deprecated. You should not use this constructor. It will vanish in the next major version.


FileBusyException

public FileBusyException(ArchiveBusyException cause)
Deprecated. You should not use this constructor. It will have package private access in the next major version.