Package nom.tam.util

Class BufferPointer

java.lang.Object
nom.tam.util.BufferPointer

@Deprecated public class BufferPointer extends Object
Deprecated.
(for internal use) It is a rusty-rail compatibility implementation only, unsafe for general use. No longer used within the FITS package itself. If you do attempt to use it with the deprecated APIs, beware that no data will be filled into the buffer of this object ever by the library, although its length and position fields may be updated to pretend as if the buffer were always hall full / half available...
See Also:
  • Constructor Details

    • BufferPointer

      @Deprecated public BufferPointer()
      Deprecated.
      Rusty rail implementation only.
      Constructs a new buffer pointer with no associated buffer
    • BufferPointer

      @Deprecated public BufferPointer(byte[] buffer)
      Deprecated.
      Rusty rail implementation only.
      Constructs a new buffer pointer for the specified byte buffer
      Parameters:
      buffer - the array containing the bytes of the buffer.
  • Method Details

    • position

      @Deprecated public int position()
      Deprecated.
      Returns the current buffer position
      Returns:
      the current position
    • limit

      @Deprecated public int limit()
      Deprecated.
      Returns the current sizeof the buffer
      Returns:
      the size (or accessible limit) of the buffer