Package nom.tam.fits
Class HeaderCardCountingArrayDataInput
java.lang.Object
nom.tam.fits.HeaderCardCountingArrayDataInput
A helper class to keep track of the number of physical cards for a logical
card.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArrayDataInput
the input stream.private int
private int
the number of 80 byte cards read. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cardRead()
report a readed card.protected int
protected ArrayDataInput
in()
void
mark()
mark the current position in the stream.void
reset()
reset the stream th the last marked prosition.
-
Field Details
-
input
the input stream. -
physicalCardsRead
private int physicalCardsReadthe number of 80 byte cards read. -
markedPhysicalCardsRead
private int markedPhysicalCardsRead
-
-
Constructor Details
-
HeaderCardCountingArrayDataInput
-
-
Method Details
-
getPhysicalCardsRead
protected int getPhysicalCardsRead()- Returns:
- the number of cards realy read form the stream
-
in
- Returns:
- the stream to read the cards from
-
cardRead
public void cardRead()report a readed card. -
mark
mark the current position in the stream.- Throws:
IOException
- if the underlaying stream does not allow the mark.
-
reset
reset the stream th the last marked prosition.- Throws:
IOException
- if the underlaying stream does not allow the mark.
-