java.lang.Object
org.xbib.rpm.header.entry.AbstractSpecEntry<byte[]>
org.xbib.rpm.header.entry.BinSpecEntry
- All Implemented Interfaces:
SpecEntry<byte[]>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetType()voidread(ByteBuffer buffer) Reads this entries value from the provided buffer using the set count.intsize()Returns the size this entry will need in the provided data buffer to write it's contents, corrected for any trailing zeros to fill to a boundary.voidwrite(ByteBuffer data) Writes this entries index to the index buffer and its values to the output channel provided.Methods inherited from class org.xbib.rpm.header.entry.AbstractSpecEntry
getEntryType, getOffset, getValues, incCount, index, ready, setCount, setEntryType, setOffset, setSize, setValues, toString
-
Constructor Details
-
BinSpecEntry
public BinSpecEntry()
-
-
Method Details
-
getType
public int getType()- Specified by:
getTypein interfaceSpecEntry<byte[]>- Specified by:
getTypein classAbstractSpecEntry<byte[]>
-
size
public int size()Description copied from class:AbstractSpecEntryReturns the size this entry will need in the provided data buffer to write it's contents, corrected for any trailing zeros to fill to a boundary.- Specified by:
sizein interfaceSpecEntry<byte[]>- Specified by:
sizein classAbstractSpecEntry<byte[]>
-
read
Description copied from class:AbstractSpecEntryReads this entries value from the provided buffer using the set count.- Specified by:
readin interfaceSpecEntry<byte[]>- Specified by:
readin classAbstractSpecEntry<byte[]>
-
write
Description copied from class:AbstractSpecEntryWrites this entries index to the index buffer and its values to the output channel provided.- Specified by:
writein interfaceSpecEntry<byte[]>- Specified by:
writein classAbstractSpecEntry<byte[]>
-