com.ibm.as400.access

Class DataStream

  • java.lang.Object
    • com.ibm.as400.access.DataStream
  • Direct Known Subclasses:
    ClientAccessDataStream


    public abstract class DataStream
    extends java.lang.Object
    Base class for data streams. Provides methods to access common data stream parts.
    • Field Detail

      • connectionID_

        protected int connectionID_
      • data_

        protected byte[] data_
      • headerLength_

        protected int headerLength_
    • Method Detail

      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getNewDataStream

        public java.lang.Object getNewDataStream()
      • get8bit

        protected final byte get8bit(int offset)
      • get16bit

        protected final int get16bit(int offset)
      • get32bit

        protected final int get32bit(int offset)
      • get64bit

        protected final long get64bit(int offset)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • readAfterHeader

        protected int readAfterHeader(java.io.InputStream in)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • set16bit

        protected final void set16bit(int i,
                    int offset)
      • set32bit

        protected final void set32bit(int i,
                    int offset)
      • set32bit

        protected final void set32bit(long i,
                    int offset)
      • set64bit

        protected final void set64bit(long longVal,
                    int offset)