Codota Logo
ExtraFields.<init>
Code IndexAdd Codota to your IDE (free)

How to use
de.schlichtherle.truezip.zip.ExtraFields
constructor

Best Java code snippets using de.schlichtherle.truezip.zip.ExtraFields.<init> (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: stackoverflow.com

 public class Wrapper<T>  // Don't use this name either...
{
  private ExtraFields extraFields;
  private T myClass;

  public Wrapper(T myClass) {
    this.myClass = myClass;
    this.extraFields = new ExtraFields();
  }
}
origin: de.schlichtherle.truezip/truezip-driver-zip

final @Nullable ExtraField addExtraField(final ExtraField field) {
  assert null != field;
  ExtraFields fields = this.fields;
  if (null == fields)
    this.fields = fields = new ExtraFields();
  return fields.add(field);
}
origin: stackoverflow.com

 public class Subclass1 extends Superclass1
{
  private ExtraFields extraFields;

  public MySubclass()
  {
    super();
    extraFields = new ExtraFields();
  }

  public void doSomethingWithExtraFields()
  {
    extraFields.doSomethingWithExtraFields();
  }
}
origin: de.schlichtherle.truezip/truezip-driver-zip

/**
 * @throws IllegalArgumentException if the serialized extra fields do not
 *         conform to the ZIP File Format Specification.
 */
private void setExtraFields(final byte[] buf, final boolean zip64)
throws IllegalArgumentException {
  assert UShort.check(buf.length);
  if (0 < buf.length) {
    final ExtraFields fields = new ExtraFields();
    try {
      fields.readFrom(buf, 0, buf.length);
      if (zip64) parseZip64ExtraField(fields);
    } catch (final IndexOutOfBoundsException ex) {
      throw new IllegalArgumentException(ex);
    }
    fields.remove(ZIP64_HEADER_ID);
    this.fields = 0 < fields.size() ? fields : null;
  } else {
    this.fields = null;
  }
}
origin: de.schlichtherle.truezip/truezip-driver-zip

@Before
public void setUp() {
  fields = new ExtraFields();
  serialized = SERIALIZED.clone();
}
origin: de.schlichtherle.truezip/truezip-driver-zip

private byte[] getExtraFields(final boolean zip64) {
  ExtraFields fields = this.fields;
  if (zip64) {
    final ExtraField field = composeZip64ExtraField();
    if (null != field) {
      fields = null != fields ? fields.clone() : new ExtraFields();
      fields.add(field);
    }
  } else {
    assert null == fields || null == fields.get(ZIP64_HEADER_ID);
  }
  return null == fields ? EMPTY : fields.getExtra();
}
de.schlichtherle.truezip.zipExtraFields<init>

Popular methods of ExtraFields

  • add
    Stores the given Extra Field in this collection.
  • get
    Returns the Extra Field with the given Header ID or nullif no such Extra Field exists.
  • getExtra
    Returns a protective copy of the Extra Fields. null is never returned.
  • getExtraLength
    Returns the number of bytes required to hold the Extra Fields.
  • readFrom
    Deserializes this collection of extra fields from the data block starting at the zero based offset o
  • remove
    Removes the Extra Field with the given Header ID.
  • clone
    Returns a shallow clone of this collection.
  • doSomethingWithExtraFields
  • size
    Returns the number of Extra Fields in this collection.
  • writeTo
    Serializes a list of Extra Fields of #getExtraLength bytes to the byte array data at the zero based

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • onRequestPermissionsResult (Fragment)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now