String name = "";
while (specbuf.charAt(0) != '{') {
name += specbuf.substring(0, 1);
specbuf.delete(0, 1);
}
RecordSignature rsig = new RecordSignature(new OtpErlangList(),new OtpErlangList());// this will throw since we provide no name for this record
int depth = 1;
while (depth > 0) {
specbuf.delete(0, 1);
bufTrimmer(specbuf);
if (specbuf.charAt(0) == '{') {