TrueZIP 6.8.3

de.schlichtherle.io
Class ArchiveController.FalsePositiveException

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.ArchiveController.FalsePositiveException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArchiveController.ArchiveEntryFalsePositiveException, ArchiveController.RfsEntryFalsePositiveException
Enclosing class:
ArchiveController

abstract class ArchiveController.FalsePositiveException
extends FileNotFoundException

Thrown if a controller's target file is a false positive archive file which actually exists as a plain file or directory in the real file system or in an enclosing archive file.

Instances of this class are always associated with an IOException as their cause.


Field Summary
private  boolean cacheable
           
 
Constructor Summary
private ArchiveController.FalsePositiveException(IOException cause)
          Creates a new FalsePositiveException.
 
Method Summary
(package private)  ArchiveController getController()
          Returns the archive controller which has thrown this exception.
(package private)  boolean isCacheable()
          Returns true if and only if there is no cause associated with this exception or it is safe to cache it.
 
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
 

Field Detail

cacheable

private final boolean cacheable
Constructor Detail

ArchiveController.FalsePositiveException

private ArchiveController.FalsePositiveException(IOException cause)
Creates a new FalsePositiveException.

Parameters:
cause - The cause for this exception. If this is an instance of TransientIOException, then its transient cause is unwrapped and used as the cause of this exception instead and isCacheable() is set to return false.
Method Detail

getController

ArchiveController getController()
Returns the archive controller which has thrown this exception. This is the controller which detected the false positive archive file.


isCacheable

boolean isCacheable()
Returns true if and only if there is no cause associated with this exception or it is safe to cache it.


TrueZIP 6.8.3

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.