@Override public String toString() { return toString(_charset); }
/** * Creates a String from the stream, ending where <code>byte=='\0'</code> or where <code>length==maxLength</code>. * * @param maxLengthBytes The maximum number of bytes to read. If a zero-byte is not reached within this limit, * reading will stop and the string will be truncated to this length. * @return The read string. * @throws IOException The buffer does not contain enough bytes to satisfy this request. */ @NotNull public String getNullTerminatedString(int maxLengthBytes, Charset charset) throws IOException { return getNullTerminatedStringValue(maxLengthBytes, charset).toString(); }
String[] strings = new String[stringValues.length]; for (int i = 0; i < strings.length; i++) strings[i] = stringValues[i].toString(); return strings;
if(svalue == null) return null; return svalue.toString(); case TAG_CONTRAST: case TAG_BRIGHTNESS:
if(svalue == null) return null; return svalue.toString(); case TAG_USER_LABEL: return _directory.getString(tagType);
@Override public String toString() { return toString(_charset); }
/** * Creates a String from the stream, ending where <code>byte=='\0'</code> or where <code>length==maxLength</code>. * * @param maxLengthBytes The maximum number of bytes to read. If a zero-byte is not reached within this limit, * reading will stop and the string will be truncated to this length. * @return The read string. * @throws IOException The buffer does not contain enough bytes to satisfy this request. */ @NotNull public String getNullTerminatedString(int maxLengthBytes, Charset charset) throws IOException { return getNullTerminatedStringValue(maxLengthBytes, charset).toString(); }
String[] strings = new String[stringValues.length]; for (int i = 0; i < strings.length; i++) strings[i] = stringValues[i].toString(); return strings;
if(svalue == null) return null; return svalue.toString(); case TAG_CONTRAST: case TAG_BRIGHTNESS:
if(svalue == null) return null; return svalue.toString(); case TAG_USER_LABEL: return _directory.getString(tagType);
writeString(writer.varChar(tagName), (String) value); } else if (value instanceof StringValue) { writeString(writer.varChar(tagName), ((StringValue) value).toString()); } else if (value instanceof Date) { writer.timeStamp(tagName).writeTimeStamp(((Date) value).getTime()); ListWriter listWriter = writer.list(tagName); for (StringValue v : (StringValue[]) value) { writeString(listWriter.varChar(), v.toString()); listWriter.map().start(); writeString(listWriter.map().varChar("Key"), ((KeyValuePair) v).getKey()); writeString(listWriter.map().varChar("Value"), ((KeyValuePair) v).getValue().toString()); listWriter.map().end(); } else {