ZipEntry getTime - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ZipEntry getTime method.

This code example shows how to use the following methods:getComment, getName, getSize, getTime
      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
  { 
7
CodeRank
This code example shows how to use the following methods:getComment, getCrc, getMethod, getSize, getTime
      throw new NullPointerException();
    } 
 
    this.parent = parent;
    this.repository = repository;
    this.comment = zipEntry.getComment();
    this.name = RepositoryUtilities.buildName(this, "/");
    this.entryName = IOUtils.getInstance().getFileName(name);
    this.size = zipEntry.getSize();
    this.crc32 = zipEntry.getCrc();
    this.time = zipEntry.getTime();
    this.rawData = bytes;
    final int method = zipEntry.getMethod();
    if (method == ZipEntry.STORED || method == ZipEntry.DEFLATED)
    { 
      this.method = new Integer(method);
    } 
    else 
    { 
      this.method = new Integer(ZipEntry.DEFLATED);
7
CodeRank
This code example shows how to use the following methods:getComment, getName, getSize, getTime
      throw new NullPointerException();
    } 
 
    this.repository = repository;
    this.parent = parent;
    this.entryName = IOUtils.getInstance().getFileName(zipEntry.getName());
    this.comment = zipEntry.getComment();
    this.size = zipEntry.getSize();
    this.time = zipEntry.getTime();
    this.entries = new HashMap();
    this.name = RepositoryUtilities.buildName(this, "/") + '/';
  } 
 
  private void updateMetaData(final ZipEntry zipEntry)
  { 
    this.comment = zipEntry.getComment();
    this.size = zipEntry.getSize();
    this.time = zipEntry.getTime();
  } 
 
7
CodeRank
This code example shows how to use the following methods:getName, getSize, getTime
            ZipEntry entry, int timeToLive) {
        super(mediaType);
        this.zipFile = zipFile;
        this.entry = entry;
        Disposition disposition = new Disposition();
        disposition.setFilename(entry.getName());
        this.setDisposition(disposition);
        setSize(entry.getSize());
        setModificationDate(new Date(entry.getTime()));
 
        if (timeToLive == 0) {
            setExpirationDate(null); 
        } else if (timeToLive > 0) {
            setExpirationDate(new Date(System.currentTimeMillis()
                    + (1000L * timeToLive)));
        } 
    } 
 
    @Override 
    public InputStream getStream() throws IOException {
6
CodeRank
This code example shows how to use the following methods:getComment, getName, getSize, getTime
      throw new NullPointerException();
    } 
 
    this.repository = repository;
    this.parent = parent;
    this.comment = zipEntry.getComment();
    this.size = zipEntry.getSize();
    this.time = zipEntry.getTime();
    this.entries = new HashMap();
    this.entryName = IOUtils.getInstance().getFileName(zipEntry.getName());
    this.name = RepositoryUtilities.buildName(this, "/") + '/';
  } 
 
  private void updateMetaData(final ZipEntry zipEntry)
  { 
    this.comment = zipEntry.getComment();
    this.size = zipEntry.getSize();
    this.time = zipEntry.getTime();
  } 
 
7
CodeRank
This code example shows how to use the following methods:getComment, getName, getSize, getTime
      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
6
CodeRank
This code example shows how to use the following methods:getComment, getCrc, getMethod, getSize, getTime
      throw new NullPointerException();
    } 
 
    this.parent = parent;
    this.repository = repository;
    this.comment = zipEntry.getComment();
    this.name = RepositoryUtilities.buildName(this, "/");
    this.entryName = IOUtils.getInstance().getFileName(name);
    this.size = zipEntry.getSize();
    this.crc32 = zipEntry.getCrc();
    this.time = zipEntry.getTime();
    this.rawData = bytes;
    final int method = zipEntry.getMethod();
    if (method == ZipEntry.STORED || method == ZipEntry.DEFLATED)
    { 
      this.method = new Integer(method);
    } 
    else 
    { 
      this.method = new Integer(ZipEntry.DEFLATED);
6
CodeRank
This code example shows how to use the following methods:getComment, getName, getSize, getTime
      throw new NullPointerException();
    } 
 
    this.repository = repository;
    this.parent = parent;
    this.comment = zipEntry.getComment();
    this.size = zipEntry.getSize();
    this.time = zipEntry.getTime();
    this.entries = new HashMap();
    this.entryName = IOUtils.getInstance().getFileName(zipEntry.getName());
    this.name = RepositoryUtilities.buildName(this, "/") + '/';
  } 
 
  private void updateMetaData(final ZipEntry zipEntry)
  { 
    this.comment = zipEntry.getComment();
    this.size = zipEntry.getSize();
    this.time = zipEntry.getTime();
  } 
 
6
CodeRank
This code example shows how to use the following methods:getComment, getName, getSize, getTime
      throw new NullPointerException();
    } 
 
    this.repository = repository;
    this.parent = parent;
    this.entryName = IOUtils.getInstance().getFileName(zipEntry.getName());
    this.comment = zipEntry.getComment();
    this.size = zipEntry.getSize();
    this.time = zipEntry.getTime();
    this.entries = new HashMap();
    this.name = RepositoryUtilities.buildName(this, "/") + '/';
  } 
 
  private void updateMetaData(final ZipEntry zipEntry)
  { 
    this.comment = zipEntry.getComment();
    this.size = zipEntry.getSize();
    this.time = zipEntry.getTime();
  } 
 
6
CodeRank
This code example shows how to use the following methods:getComment, getCrc, getExtra, getName, getSize
 
          Now, from some simple testing I did, it seems that the value of CRC-32 is 
          independent of the compression setting. So, it should be easy to pass this 
          information on to the output entry. 
        */ 
        String name = inputEntry.getName();
 
        if (!(inputEntry.isDirectory() || name.endsWith(".class"))) {
            try { 
                InputStream input = zip.getInputStream(zip.getEntry(name));
                String className = ClassNameReader.getClassName(input);
 
                input.close();
                if (className != null) {
                    name = className.replace('.', '/') + ".class";
                } 
            } catch (IOException ioe) {
                //do nothing 
            } 
        } 

6
CodeRank

Related ZipEntry getTime Questions & Answers:

getTime Method Overview
Returns the last modification time of the entry.
See Code Examples for other Java 8 ZipEntry Methods: