Package nom.tam.fits

Class HeaderCardCountingArrayDataInput

java.lang.Object
nom.tam.fits.HeaderCardCountingArrayDataInput

@Deprecated public class HeaderCardCountingArrayDataInput extends Object
Deprecated.
(for internal use) This class should not have public visibility. And really, the counting should be completely internalized by HeaderCard. Perhaps remove in a future major release.

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
    Deprecated.
    (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
    protected int
    Deprecated.
    (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
    protected ArrayDataInput
    in()
    Deprecated.
    (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
    void
    Deprecated.
    (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
    boolean
    Deprecated.
    (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
    void
    Deprecated.
    (for internal use) Visibility will be reduced to the package level, or will be removed entirely.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HeaderCardCountingArrayDataInput

      protected HeaderCardCountingArrayDataInput(ArrayDataInput input)
      Deprecated.
      (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
      Creates a new instance of this class for counting the number of 80-character header records.
      Parameters:
      input - The input from which we read the header cards.
  • Method Details

    • getPhysicalCardsRead

      protected int getPhysicalCardsRead()
      Deprecated.
      (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
      Returns:
      the number of cards realy read form the stream
    • in

      protected ArrayDataInput in()
      Deprecated.
      (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
      Returns:
      the stream to read the cards from
    • cardRead

      public void cardRead()
      Deprecated.
      (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
      report a readed card.
    • markSupported

      public boolean markSupported()
      Deprecated.
      (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
      indicate whether mark/reset functionality is supported
      Returns:
      true iff mark/reset will work
    • mark

      public void mark() throws IOException
      Deprecated.
      (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
      mark the current position in the stream.
      Throws:
      IOException - if the underlaying stream does not allow the mark.
    • reset

      public void reset() throws IOException
      Deprecated.
      (for internal use) Visibility will be reduced to the package level, or will be removed entirely.
      reset the stream th the last marked prosition.
      Throws:
      IOException - if the underlaying stream does not allow the mark.