Class BinaryConstant

java.lang.Object
org.apache.commons.imaging.common.BinaryConstant

public class BinaryConstant extends Object
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(byte[] bytes)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • get

      public byte get(int i)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class 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.
    • size

      public int size()
    • writeTo

      public void writeTo(OutputStream os) throws IOException
      Throws:
      IOException