All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yworks.util.abstractjar.impl.JarEntryWrapper Maven / Gradle / Ivy

Go to download

The open-source Java obfuscation tool working with Ant and Gradle by yWorks - the diagramming experts

The newest version!
package com.yworks.util.abstractjar.impl;

import com.yworks.util.abstractjar.Entry;

import java.util.jar.JarEntry;

/**
 * The type Jar entry wrapper.
 */
public class JarEntryWrapper implements Entry {
  /**
   * The Jar entry.
   */
  JarEntry jarEntry;

  /**
   * Instantiates a new Jar entry wrapper.
   *
   * @param jarEntry the jar entry
   */
  public JarEntryWrapper( JarEntry jarEntry ) {
    this.jarEntry = jarEntry;
  }

  @Override
  public boolean isDirectory() {
    return jarEntry.isDirectory();
  }

  @Override
  public String getName() {
    return jarEntry.getName();
  }

  @Override
  public long getSize() {
    return jarEntry.getSize();
  }

  /**
   * Gets jar entry.
   *
   * @return the jar entry
   */
  public JarEntry getJarEntry() {
    return jarEntry;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy