code: public IMetaEntry deserializeEntry(final DataInput pData) throws TTIOException {
          try {
              final int kind = pData.readInt();
              switch (kind) {
              case KEY:
                  return new MetaKey(pData.readInt());
              case VALUE:
                  final int valSize = pData.readInt();
                  final byte[] bytes = new byte[valSize];
                  pData.readFully(bytes);
                  return new MetaValue(new String(bytes));
              default:
                  throw new IllegalStateException("Kind not defined.");
              }
          } catch (final IOException exc) {
              throw new TTIOException(exc);
          }
      }
docs: Create a meta-entry out of a serialized byte-representation.
  
  @param pData
  byte representation.
  @return the created metaEntry.
  @throws TTIOException
  if anything weird happens