public class OidStringifierHex implements OidStringifier {
@Override
public String enString(final Oid oid) {
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final DataOutputStreamExtended outputImpl = new DataOutputStreamExtended(baos);
try {
outputImpl.writeEncodable(oid);
final byte[] byteArray = baos.toByteArray();
return new String(Hex.encodeHex(byteArray));
} catch (final IOException e) {
throw new IsisException("Failed to write object", e);
}