Code example for ZipEntry

Methods: getCommentgetNamegetSizegetTime

0
      throw new NullPointerException();
    } 
 
    this.parent = parent;
    this.repository = repository;
    this.comment = zipEntry.getComment();
    this.name = zipEntry.getName();
    this.entryName = IOUtils.getInstance().getFileName(name);
    this.size = zipEntry.getSize();
    this.time = zipEntry.getTime();
    this.rawData = bytes;
  } 
 
  public String getMimeType() throws ContentIOException
  { 
    return repository.getMimeRegistry().getMimeType(this);
  } 
 
  public OutputStream getOutputStream() throws ContentIOException, IOException
  { 
    throw new ContentCreationException("This repository is read-only");