package org.apache.poi.hslf.record;
-import org.apache.poi.util.IOUtils;
-import org.apache.poi.util.LittleEndian;
import java.io.IOException;
import java.io.OutputStream;
+import org.apache.poi.util.IOUtils;
+import org.apache.poi.util.LittleEndian;
+
/**
* If we come across a record we don't know about, we create one of
* these. It allows us to keep track of what it contains, so we can
* @author Nick Burch
*/
+@SuppressWarnings("unused")
public final class UnknownRecordPlaceholder extends RecordAtom
{
/**
* Return the value we were given at creation
*/
- public long getRecordType() { return _type; }
+ public long getRecordType() {
+ return _type;
+ }
+
+ /**
+ * Return the value as enum we were given at creation
+ */
+ public RecordTypes getRecordTypeEnum() {
+ return RecordTypes.forTypeID((int)_type);
+ }
/**
* Write the contents of the record back, so it can be written