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

How to use
org.apache.batik.ext.awt.image.codec.png.ChunkStream
constructor

Best Java code snippets using org.apache.batik.ext.awt.image.codec.png.ChunkStream.<init> (Showing top 20 results out of 315)

  • Common ways to obtain ChunkStream
private void myMethod () {
ChunkStream c =
  • Codota IconString type;new ChunkStream(type)
  • Smart code suggestions by Codota
}
origin: liuyueyi/quick-media

private void writeIEND() throws IOException {
  ChunkStream cs = new ChunkStream("IEND");
  cs.writeToStream(dataOutput);
  cs.close();
}
origin: org.apache.xmlgraphics/batik-codec

private void writeIEND() throws IOException {
  ChunkStream cs = new ChunkStream("IEND");
  cs.writeToStream(dataOutput);
  cs.close();
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writeIEND() throws IOException {
  ChunkStream cs = new ChunkStream("IEND");
  cs.writeToStream(dataOutput);
  cs.close();
}
origin: liuyueyi/quick-media

private void writeSPLT() throws IOException {
  if (param.isSuggestedPaletteSet()) {
    ChunkStream cs = new ChunkStream("sPLT");
    System.out.println("sPLT not supported yet.");
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeSPLT() throws IOException {
  if (param.isSuggestedPaletteSet()) {
    ChunkStream cs = new ChunkStream("sPLT");
    System.out.println("sPLT not supported yet.");
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writeSPLT() throws IOException {
  if (param.isSuggestedPaletteSet()) {
    ChunkStream cs = new ChunkStream("sPLT");
    System.out.println("sPLT not supported yet.");
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writeICCP() throws IOException {
  if (param.isICCProfileDataSet()) {
    ChunkStream cs = new ChunkStream("iCCP");
    byte[] ICCProfileData = param.getICCProfileData();
    cs.write(ICCProfileData);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writeSRGB() throws IOException {
  if (param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("sRGB");
    int intent = param.getSRGBIntent();
    cs.write(intent);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writeSBIT() throws IOException {
  if (param.isSignificantBitsSet()) {
    ChunkStream cs = new ChunkStream("sBIT");
    int[] significantBits = param.getSignificantBits();
    int len = significantBits.length;
    for (int i = 0; i < len; i++) {
      cs.writeByte(significantBits[i]);
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeHIST() throws IOException {
  if (param.isPaletteHistogramSet()) {
    ChunkStream cs = new ChunkStream("hIST");
    int[] hist = param.getPaletteHistogram();
    for (int aHist : hist) {
      cs.writeShort(aHist);
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeICCP() throws IOException {
  if (param.isICCProfileDataSet()) {
    ChunkStream cs = new ChunkStream("iCCP");
    byte[] ICCProfileData = param.getICCProfileData();
    cs.write(ICCProfileData);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeSRGB() throws IOException {
  if (param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("sRGB");
    int intent = param.getSRGBIntent();
    cs.write(intent);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writeICCP() throws IOException {
  if (param.isICCProfileDataSet()) {
    ChunkStream cs = new ChunkStream("iCCP");
    byte[] ICCProfileData = param.getICCProfileData();
    cs.write(ICCProfileData);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writePrivateChunks() throws IOException {
  int numChunks = param.getNumPrivateChunks();
  for (int i = 0; i < numChunks; i++) {
    String type = param.getPrivateChunkType(i);
    byte[] data = param.getPrivateChunkData(i);
    ChunkStream cs = new ChunkStream(type);
    cs.write(data);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writePrivateChunks() throws IOException {
  int numChunks = param.getNumPrivateChunks();
  for (int i = 0; i < numChunks; i++) {
    String type = param.getPrivateChunkType(i);
    byte[] data = param.getPrivateChunkData(i);
    ChunkStream cs = new ChunkStream(type);
    cs.write(data);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writePHYS() throws IOException {
  if (param.isPhysicalDimensionSet()) {
    ChunkStream cs = new ChunkStream("pHYs");
    int[] dims = param.getPhysicalDimension();
    cs.writeInt(dims[0]);
    cs.writeInt(dims[1]);
    cs.writeByte((byte)dims[2]);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writePHYS() throws IOException {
  if (param.isPhysicalDimensionSet()) {
    ChunkStream cs = new ChunkStream("pHYs");
    int[] dims = param.getPhysicalDimension();
    cs.writeInt(dims[0]);
    cs.writeInt(dims[1]);
    cs.writeByte((byte)dims[2]);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writeIHDR() throws IOException {
  ChunkStream cs = new ChunkStream("IHDR");
  cs.writeInt(width);
  cs.writeInt(height);
  cs.writeByte((byte)bitDepth);
  cs.writeByte((byte)colorType);
  cs.writeByte((byte)0);
  cs.writeByte((byte)0);
  cs.writeByte(interlace ? (byte)1 : (byte)0);
  cs.writeToStream(dataOutput);
  cs.close();
}
origin: org.apache.xmlgraphics/batik-codec

private void writeIHDR() throws IOException {
  ChunkStream cs = new ChunkStream("IHDR");
  cs.writeInt(width);
  cs.writeInt(height);
  cs.writeByte((byte)bitDepth);
  cs.writeByte((byte)colorType);
  cs.writeByte((byte)0);
  cs.writeByte((byte)0);
  cs.writeByte(interlace ? (byte)1 : (byte)0);
  cs.writeToStream(dataOutput);
  cs.close();
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writeIHDR() throws IOException {
  ChunkStream cs = new ChunkStream("IHDR");
  cs.writeInt(width);
  cs.writeInt(height);
  cs.writeByte((byte)bitDepth);
  cs.writeByte((byte)colorType);
  cs.writeByte((byte)0);
  cs.writeByte((byte)0);
  cs.writeByte(interlace ? (byte)1 : (byte)0);
  cs.writeToStream(dataOutput);
  cs.close();
}
org.apache.batik.ext.awt.image.codec.pngChunkStream<init>

Popular methods of ChunkStream

  • close
    this doesnt do much, its main purpose is to stop complaints about 'outputStream not closed...'.
  • write
  • writeByte
  • writeInt
  • writeShort
  • writeToStream

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
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