public static Boolean getBooleanValue(Tag<?> t) { if (t == null) { return null; } try { ByteTag byteTag = (ByteTag) t; return byteTag.getBooleanValue(); } catch (ClassCastException e) { return null; } } }
public Tag<?> getValue(String name, Boolean value) { return new ByteTag(name, value); } }
/** * Writes a {@code TAG_Byte} tag. * * @param tag The tag. * @throws java.io.IOException if an I/O error occurs. */ private void writeByteTagPayload(ByteTag tag) throws IOException { os.writeByte(tag.getValue()); }
public Tag<?> getValue(String name, Boolean value) { return new ByteTag(name, value); } }
/** * Writes a {@code TAG_Byte} tag. * * @param tag The tag. * @throws java.io.IOException if an I/O error occurs. */ private void writeByteTagPayload(ByteTag tag) throws IOException { os.writeByte(tag.getValue()); }
public static Boolean getBooleanValue(Tag<?> t) { if (t == null) { return null; } try { ByteTag byteTag = (ByteTag) t; return byteTag.getBooleanValue(); } catch (ClassCastException e) { return null; } } }
public Tag<?> getValue(String name, Boolean value) { return new ByteTag(name, value); } }
/** * Writes a {@code TAG_Byte} tag. * * @param tag The tag. * @throws java.io.IOException if an I/O error occurs. */ private void writeByteTagPayload(ByteTag tag) throws IOException { os.writeByte(tag.getValue()); }
public static Boolean getBooleanValue(Tag<?> t) { if (t == null) { return null; } try { ByteTag byteTag = (ByteTag) t; return byteTag.getBooleanValue(); } catch (ClassCastException e) { return null; } } }
return new ByteTag(name, is.readByte());
public Boolean getValue(Tag<?> tag) throws IllegalArgumentException { return FieldUtils.checkTagCast(tag, ByteTag.class).getBooleanValue(); }
return new ByteTag(name, is.readByte());
public Boolean getValue(Tag<?> tag) throws IllegalArgumentException { return FieldUtils.checkTagCast(tag, ByteTag.class).getBooleanValue(); }
return new ByteTag(name, is.readByte());