test_class.file: src/de/slackspace/openkeepass/util/ByteUtilsTest.java
test_class.identifier: ByteUtilsTest
test_case.body: @Test
      public void shouldReadInt() throws IOException {
          int i = 200;
          byte[] bytes = new byte[] { (byte) i };
          ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);
  
          int readInt = ByteUtils.readInt(inputStream);
  
          assertEquals(200, readInt);
      }
test_case.class_method_signature: ByteUtilsTest.shouldReadInt()
test_case.full_signature: @Test public void shouldReadInt()
test_case.identifier: shouldReadInt
test_case.invocations: readInt assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldReadInt()
focal_class.file: src/de/slackspace/openkeepass/util/ByteUtils.java
focal_class.identifier: ByteUtils
focal_class.class_method_signature: ByteUtils.ByteUtils()
focal_class.full_signature: private  ByteUtils()
focal_class.identifier: ByteUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ByteUtils()
focal_class.class_method_signature: ByteUtils.hexStringToByteArray(String s)
focal_class.full_signature: public static byte[] hexStringToByteArray(String s)
focal_class.identifier: hexStringToByteArray
focal_class.modifiers: public static
focal_class.parameters: (String s)
focal_class.return: byte[]
focal_class.signature: byte[] hexStringToByteArray(String s)
focal_class.class_method_signature: ByteUtils.toHexString(byte[] bytes)
focal_class.full_signature: public static String toHexString(byte[] bytes)
focal_class.identifier: toHexString
focal_class.modifiers: public static
focal_class.parameters: (byte[] bytes)
focal_class.return: String
focal_class.signature: String toHexString(byte[] bytes)
focal_class.class_method_signature: ByteUtils.toUnsignedInt(int value)
focal_class.full_signature: public static int toUnsignedInt(int value)
focal_class.identifier: toUnsignedInt
focal_class.modifiers: public static
focal_class.parameters: (int value)
focal_class.return: int
focal_class.signature: int toUnsignedInt(int value)
focal_class.class_method_signature: ByteUtils.readInt(InputStream inputStream)
focal_class.full_signature: public static int readInt(InputStream inputStream)
focal_class.identifier: readInt
focal_class.modifiers: public static
focal_class.parameters: (InputStream inputStream)
focal_class.return: int
focal_class.signature: int readInt(InputStream inputStream)
focal_class.class_method_signature: ByteUtils.bytesToUUID(byte[] bytes)
focal_class.full_signature: public static UUID bytesToUUID(byte[] bytes)
focal_class.identifier: bytesToUUID
focal_class.modifiers: public static
focal_class.parameters: (byte[] bytes)
focal_class.return: UUID
focal_class.signature: UUID bytesToUUID(byte[] bytes)
focal_class.class_method_signature: ByteUtils.uuidToBytes(UUID uuid)
focal_class.full_signature: public static byte[] uuidToBytes(UUID uuid)
focal_class.identifier: uuidToBytes
focal_class.modifiers: public static
focal_class.parameters: (UUID uuid)
focal_class.return: byte[]
focal_class.signature: byte[] uuidToBytes(UUID uuid)
focal_class.class_method_signature: ByteUtils.concat(byte[] array1, byte[] array2)
focal_class.full_signature: public static byte[] concat(byte[] array1, byte[] array2)
focal_class.identifier: concat
focal_class.modifiers: public static
focal_class.parameters: (byte[] array1, byte[] array2)
focal_class.return: byte[]
focal_class.signature: byte[] concat(byte[] array1, byte[] array2)
focal_method.body: public static int readInt(InputStream inputStream) throws IOException {
          byte[] bytesToRead = new byte[4];
          int readBytes = inputStream.read(bytesToRead);
          if (readBytes == -1) {
              return -1;
          }
  
          ByteBuffer buffer = ByteBuffer.wrap(bytesToRead);
          buffer.order(ByteOrder.LITTLE_ENDIAN);
  
          return buffer.getInt();
      }
focal_method.class_method_signature: ByteUtils.readInt(InputStream inputStream)
focal_method.full_signature: public static int readInt(InputStream inputStream)
focal_method.identifier: readInt
focal_method.invocations: read wrap order getInt
focal_method.modifiers: public static
focal_method.parameters: (InputStream inputStream)
focal_method.return: int
focal_method.signature: int readInt(InputStream inputStream)