Class BinaryConstant


  • public class BinaryConstant
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] value  
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryConstant​(byte[] value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(byte[] bytes)  
      boolean equals​(java.lang.Object obj)  
      byte get​(int i)  
      int hashCode()  
      boolean isStartOf​(byte[] buffer)
      Tests whether the give buffer starts with this binary constant.
      (package private) byte[] rawValue()  
      int size()  
      void writeTo​(java.io.OutputStream os)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        private final byte[] value
    • Constructor Detail

      • BinaryConstant

        public BinaryConstant​(byte[] value)
    • Method Detail

      • equals

        public boolean equals​(byte[] bytes)
      • equals

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

        public byte get​(int i)
      • hashCode

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

        public boolean isStartOf​(byte[] buffer)
        Tests whether the give buffer starts with this binary constant.
        Parameters:
        buffer - The buffer to test.
        Returns:
        Whether the give buffer starts with this binary constant.
      • rawValue

        byte[] rawValue()
      • size

        public int size()
      • writeTo

        public void writeTo​(java.io.OutputStream os)
                     throws java.io.IOException
        Throws:
        java.io.IOException