/**
  * Whether this stream is able to write the given entry.
  *
  * <p>May return false if it is set up to use encryption or a
  * compression method that hasn't been implemented yet.</p>
  * @since Apache Commons Compress 1.1
  */
 public override bool canWriteEntryData(ArchiveEntry ae)
 {
     if (ae is ZipArchiveEntry)
     {
         return(ZipUtil.canHandleEntryData((ZipArchiveEntry)ae));
     }
     return(false);
 }
 /**
  * Whether this class is able to read the given entry.
  *
  * <p>May return false if it is set up to use encryption or a
  * compression method that hasn't been implemented yet.</p>
  * @since Apache Commons Compress 1.1
  */
 public override bool canReadEntryData(ArchiveEntry ae)
 {
     if (ae is ZipArchiveEntry)
     {
         ZipArchiveEntry ze = (ZipArchiveEntry)ae;
         return(ZipUtil.canHandleEntryData(ze) &&
                supportsDataDescriptorFor(ze));
     }
     return(false);
 }
Example #3
0
 /**
  * Whether this class is able to read the given entry.
  *
  * <p>May return false if it is set up to use encryption or a
  * compression method that hasn't been implemented yet.</p>
  * @since Apache Commons Compress 1.1
  */
 public bool canReadEntryData(ZipArchiveEntry ze)
 {
     return(ZipUtil.canHandleEntryData(ze));
 }