hop-2012/java/hop/SexpDisplayHint.java

31 lines
602 B
Java
Raw Normal View History

2011-01-06 02:29:28 +00:00
/*
* Copyright (c) 2011 Tony Garnock-Jones. All rights reserved.
*/
package hop;
import java.io.IOException;
import java.io.OutputStream;
/**
*/
public class SexpDisplayHint extends SexpBytes {
public byte[] _hint;
public SexpDisplayHint(byte[] hint, byte[] body) {
super(body);
_hint = hint;
}
public byte[] getHint() {
return _hint;
}
public void writeTo(OutputStream stream) throws IOException {
stream.write('[');
SexpWriter.writeSimpleString(stream, _hint);
stream.write(']');
super.writeTo(stream);
}
}