public class DisplayedImageInfo extends AbstractImageInfo
Modifier and Type | Field and Description |
---|---|
static int |
DISPLAYED_PORTRAIT_TAG |
static int |
DISPLAYED_SIGNATURE_OR_MARK_TAG |
JPEG_MIME_TYPE, JPEG2000_MIME_TYPE, TYPE_FINGER, TYPE_IRIS, TYPE_PORTRAIT, TYPE_SIGNATURE_OR_MARK, WSQ_MIME_TYPE
Constructor and Description |
---|
DisplayedImageInfo(InputStream in)
Constructs a displayed image info from binary encoding.
|
DisplayedImageInfo(int type,
byte[] imageBytes)
Constructs a displayed image info from the image bytes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getRecordLength()
Gets the length of the total record (header and data) in bytes.
|
int |
hashCode() |
protected void |
readObject(InputStream inputStream)
Reads the displayed image.
|
protected void |
writeObject(OutputStream outputStream) |
getEncoded, getHeight, getImageInputStream, getImageLength, getMimeType, getType, getWidth, readImage, setHeight, setImageBytes, setMimeType, setType, setWidth, toString, writeImage
public static final int DISPLAYED_PORTRAIT_TAG
public static final int DISPLAYED_SIGNATURE_OR_MARK_TAG
public DisplayedImageInfo(int type, byte[] imageBytes)
type
- one of ImageInfo.TYPE_PORTRAIT
or ImageInfo.TYPE_SIGNATURE_OR_MARK
imageBytes
- encoded image, for Portrait and Signature or mark use JPEG encodingpublic DisplayedImageInfo(InputStream in) throws IOException
in
- an input streamIOException
- if decoding failsprotected void readObject(InputStream inputStream) throws IOException
readObject
in class AbstractImageInfo
inputStream
- the input stream positioned so that biometric data block tag and length are already readIOException
- if reading failsprotected void writeObject(OutputStream outputStream) throws IOException
writeObject
in class AbstractImageInfo
IOException
public long getRecordLength()
ImageInfo
public int hashCode()
hashCode
in class AbstractImageInfo
public boolean equals(Object obj)
equals
in class AbstractImageInfo
Copyright © 2017. All rights reserved.