@ Deprecated public void writeMetadata ( byte [ ] bytes ) throws IOException { if ( readonly ) { throw new UnsupportedOperationException ( RO_MSG ) ; } if ( bytes . length != recordSize ) { final String fmt = "invalid write of %d bytes, expected %d" ; final String msg = format ( fmt , bytes . length , recordSize ) ; throw new InvalidArgument ( msg ) ; } raf . seek ( 0 ) ; raf . write ( bytes ) ; }
Writes metadata to this record file overwriting existing metadata .