com.drew.imaging.jpeg
Class JpegSegmentData
java.lang.Object
com.drew.imaging.jpeg.JpegSegmentData
- All Implemented Interfaces:
- java.io.Serializable
public class JpegSegmentData
- extends java.lang.Object
- implements java.io.Serializable
Holds a collection of Jpeg data segments. This need not necessarily be all segments
within the Jpeg. For example, it may be convenient to port about only the non-image
segments when analysing (or serializing) metadata.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpegSegmentData
public JpegSegmentData()
addSegment
public void addSegment(byte segmentMarker,
byte[] segmentBytes)
getSegment
public byte[] getSegment(byte segmentMarker)
getSegment
public byte[] getSegment(byte segmentMarker,
int occurrence)
getSegmentCount
public int getSegmentCount(byte segmentMarker)
removeSegmentOccurrence
public void removeSegmentOccurrence(byte segmentMarker,
int occurrence)
removeSegment
public void removeSegment(byte segmentMarker)
containsSegment
public boolean containsSegment(byte segmentMarker)
ToFile
public static void ToFile(java.io.File file,
JpegSegmentData segmentData)
throws java.io.IOException
- Throws:
java.io.IOException
FromFile
public static JpegSegmentData FromFile(java.io.File file)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
Copyright © 2006 Drew Noakes. All Rights Reserved.