Package nom.tam.fits
Class HeaderCardCountingArrayDataInput
- java.lang.Object
-
- nom.tam.fits.HeaderCardCountingArrayDataInput
-
public class HeaderCardCountingArrayDataInput extends java.lang.Object
A helper class to keep track of the number of physical cards for a logical card.- Author:
- Richard van Nieuwenhoven
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HeaderCardCountingArrayDataInput(ArrayDataInput input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cardRead()
report a readed card.protected int
getPhysicalCardsRead()
protected ArrayDataInput
in()
void
mark()
mark the current position in the stream.void
reset()
reset the stream th the last marked prosition.
-
-
-
Constructor Detail
-
HeaderCardCountingArrayDataInput
protected HeaderCardCountingArrayDataInput(ArrayDataInput input)
-
-
Method Detail
-
getPhysicalCardsRead
protected int getPhysicalCardsRead()
- Returns:
- the number of cards realy read form the stream
-
in
protected ArrayDataInput in()
- Returns:
- the stream to read the cards from
-
cardRead
public void cardRead()
report a readed card.
-
mark
public void mark() throws java.io.IOException
mark the current position in the stream.- Throws:
java.io.IOException
- if the underlaying stream does not allow the mark.
-
reset
public void reset() throws java.io.IOException
reset the stream th the last marked prosition.- Throws:
java.io.IOException
- if the underlaying stream does not allow the mark.
-
-