Package org.apache.commons.imaging.common

# Class BinaryConstant

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

public class BinaryConstant extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BinaryConstant(byte[] value)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(byte[] bytes)`
  `boolean`
  `equals(Object obj)`
  `byte`
  `get(int i)`
  `int`
  `hashCode()`
  `boolean`
  `isStartOf(byte[] buffer)`
  Tests whether the give buffer starts with this binary constant.
  `int`
  `size()`
  `void`
  `writeTo(OutputStream os)`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BinaryConstant

    public BinaryConstant(byte[] value)

- ## 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`