Tabnine Logo
PNGEncodeParam.getModificationTime
Code IndexAdd Tabnine to your IDE (free)

How to use
getModificationTime
method
in
org.apache.batik.ext.awt.image.codec.png.PNGEncodeParam

Best Java code snippets using org.apache.batik.ext.awt.image.codec.png.PNGEncodeParam.getModificationTime (Showing top 4 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

private void writeTIME() throws IOException {
  if (param.isModificationTimeSet()) {
    ChunkStream cs = new ChunkStream("tIME");
    Date date = param.getModificationTime();
    TimeZone gmt = TimeZone.getTimeZone("GMT");
    GregorianCalendar cal = new GregorianCalendar(gmt);
    cal.setTime(date);
    int year = cal.get(Calendar.YEAR);
    int month = cal.get(Calendar.MONTH);
    int day = cal.get(Calendar.DAY_OF_MONTH);
    int hour = cal.get(Calendar.HOUR_OF_DAY);
    int minute = cal.get(Calendar.MINUTE);
    int second = cal.get(Calendar.SECOND);
    cs.writeShort(year);
    cs.writeByte(month + 1);
    cs.writeByte(day);
    cs.writeByte(hour);
    cs.writeByte(minute);
    cs.writeByte(second);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writeTIME() throws IOException {
  if (param.isModificationTimeSet()) {
    ChunkStream cs = new ChunkStream("tIME");
    Date date = param.getModificationTime();
    TimeZone gmt = TimeZone.getTimeZone("GMT");
    GregorianCalendar cal = new GregorianCalendar(gmt);
    cal.setTime(date);
    int year = cal.get(Calendar.YEAR);
    int month = cal.get(Calendar.MONTH);
    int day = cal.get(Calendar.DAY_OF_MONTH);
    int hour = cal.get(Calendar.HOUR_OF_DAY);
    int minute = cal.get(Calendar.MINUTE);
    int second = cal.get(Calendar.SECOND);
    cs.writeShort(year);
    cs.writeByte(month + 1);
    cs.writeByte(day);
    cs.writeByte(hour);
    cs.writeByte(minute);
    cs.writeByte(second);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeTIME() throws IOException {
  if (param.isModificationTimeSet()) {
    ChunkStream cs = new ChunkStream("tIME");
    Date date = param.getModificationTime();
    TimeZone gmt = TimeZone.getTimeZone("GMT");
    GregorianCalendar cal = new GregorianCalendar(gmt);
    cal.setTime(date);
    int year = cal.get(Calendar.YEAR);
    int month = cal.get(Calendar.MONTH);
    int day = cal.get(Calendar.DAY_OF_MONTH);
    int hour = cal.get(Calendar.HOUR_OF_DAY);
    int minute = cal.get(Calendar.MINUTE);
    int second = cal.get(Calendar.SECOND);
    cs.writeShort(year);
    cs.writeByte(month + 1);
    cs.writeByte(day);
    cs.writeByte(hour);
    cs.writeByte(minute);
    cs.writeByte(second);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: apache/batik

private void writeTIME() throws IOException {
  if (param.isModificationTimeSet()) {
    ChunkStream cs = new ChunkStream("tIME");
    Date date = param.getModificationTime();
    TimeZone gmt = TimeZone.getTimeZone("GMT");
    GregorianCalendar cal = new GregorianCalendar(gmt);
    cal.setTime(date);
    int year = cal.get(Calendar.YEAR);
    int month = cal.get(Calendar.MONTH);
    int day = cal.get(Calendar.DAY_OF_MONTH);
    int hour = cal.get(Calendar.HOUR_OF_DAY);
    int minute = cal.get(Calendar.MINUTE);
    int second = cal.get(Calendar.SECOND);
    cs.writeShort(year);
    cs.writeByte(month + 1);
    cs.writeByte(day);
    cs.writeByte(hour);
    cs.writeByte(minute);
    cs.writeByte(second);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
org.apache.batik.ext.awt.image.codec.pngPNGEncodeParamgetModificationTime

Javadoc

Returns the modification time to be stored with this image.

If the bit depth has not previously been set, or has been unset, an IllegalStateException will be thrown.

Popular methods of PNGEncodeParam

  • abs
    An abs() function for use by the Paeth predictor.
  • addPrivateChunk
    Adds a private chunk, in binary form, to the list of chunks to be stored with this image.
  • filterRow
    Performs filtering on a row of an image. This method may be overridden in order to provide a custom
  • getChromaticity
    Returns the white point and primary chromaticities in CIE (x, y) space. See the documentation for th
  • getCompressedText
    Returns the text strings to be stored in compressed form with this image as an array of Strings. If
  • getDefaultEncodeParam
    Returns an instance of PNGEncodeParam.Palette,PNGEncodeParam.Gray, or PNGEncodeParam.RGB appropriate
  • getGamma
    Returns the file gamma value for the image. If the file gamma has not previously been set, or has be
  • getICCProfileData
    Returns the ICC profile data to be stored with this image. If the ICC profile has not previously bee
  • getInterlacing
    Returns true if Adam7 interlacing will be used.
  • getNumPrivateChunks
    Returns the number of private chunks to be written to the output file.
  • getPaletteHistogram
    Returns the palette histogram to be stored with this image. If the histogram has not previously been
  • getPhysicalDimension
    Returns the physical dimension information to be stored with this image. If the physical dimension i
  • getPaletteHistogram,
  • getPhysicalDimension,
  • getPrivateChunkData,
  • getPrivateChunkType,
  • getSRGBIntent,
  • getSignificantBits,
  • getText,
  • isBackgroundSet,
  • isChromaticitySet

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Notification (javax.management)
  • JFileChooser (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now