149150151152153154155156157158159
public String getString() { try { Bytes term = terms[0]; byte[] bytes = new byte[term.getLength()-1]; term.writeBytes(1, bytes); return new String(bytes, "utf-8"); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } }