Package com.google.zxing.pdf417
Class PDF417ResultMetadata
java.lang.Object
com.google.zxing.pdf417.PDF417ResultMetadata
- Author:
- Guenther Grau
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint16-bit CRC checksum using CCITT-16Is the same for each related PDF417 symbolFilename of the encoded filelongfilesize in bytes of the encoded fileint[]Deprecated.use dedicated already parsed fieldsintintThe Segment ID represents the segment of the whole file distributed over different symbols.longunix epock timestamp, elapsed seconds since 1970-01-01booleanvoidsetAddressee(String addressee) voidsetChecksum(int checksum) voidvoidsetFileName(String fileName) voidsetFileSize(long fileSize) voidsetLastSegment(boolean lastSegment) voidsetOptionalData(int[] optionalData) Deprecated.parse and use new fieldsvoidsetSegmentCount(int segmentCount) voidsetSegmentIndex(int segmentIndex) voidvoidsetTimestamp(long timestamp)
-
Constructor Details
-
PDF417ResultMetadata
public PDF417ResultMetadata()
-
-
Method Details
-
getSegmentIndex
public int getSegmentIndex()The Segment ID represents the segment of the whole file distributed over different symbols.- Returns:
- File segment index
-
setSegmentIndex
public void setSegmentIndex(int segmentIndex) -
getFileId
Is the same for each related PDF417 symbol- Returns:
- File ID
-
setFileId
-
getOptionalData
Deprecated.use dedicated already parsed fields- Returns:
- always null
-
setOptionalData
Deprecated.parse and use new fields- Parameters:
optionalData- old optional data format as int array
-
isLastSegment
public boolean isLastSegment()- Returns:
- true if it is the last segment
-
setLastSegment
public void setLastSegment(boolean lastSegment) -
getSegmentCount
public int getSegmentCount()- Returns:
- count of segments, -1 if not set
-
setSegmentCount
public void setSegmentCount(int segmentCount) -
getSender
-
setSender
-
getAddressee
-
setAddressee
-
getFileName
Filename of the encoded file- Returns:
- filename
-
setFileName
-
getFileSize
public long getFileSize()filesize in bytes of the encoded file- Returns:
- filesize in bytes, -1 if not set
-
setFileSize
public void setFileSize(long fileSize) -
getChecksum
public int getChecksum()16-bit CRC checksum using CCITT-16- Returns:
- crc checksum, -1 if not set
-
setChecksum
public void setChecksum(int checksum) -
getTimestamp
public long getTimestamp()unix epock timestamp, elapsed seconds since 1970-01-01- Returns:
- elapsed seconds, -1 if not set
-
setTimestamp
public void setTimestamp(long timestamp)
-