public void appendLong ( long x ) { ByteArrayOutputStream buffer = new ByteArrayOutputStream ( 8 ) ; DataOutputStream bufout = new DataOutputStream ( buffer ) ; try { bufout . writeLong ( x ) ; appendBytes ( buffer . toByteArray ( ) , 0 , 8 ) ; } catch ( IOException e ) { throw new AssertionError ( "write" ) ; } }
Append a long as an eight byte number .