private Diff generateFullRevision ( final Revision revision ) throws UnsupportedEncodingException { Diff diff = new Diff ( ) ; RevisionCodecData codecData = new RevisionCodecData ( ) ; // FullRevisionUncompressed (C L T) part = new DiffPart ( DiffAction . FULL_REVISION_UNCOMPRESSED ) ; // L T text = revision . getRevisionText ( ) ; revCurrent = text . toCharArray ( ) ; part . setText ( text ) ; codecData . checkBlocksizeL ( text . getBytes ( WIKIPEDIA_ENCODING ) . length ) ; diff . add ( part ) ; diff . setCodecData ( codecData ) ; return diff ; }
Generates a FullRevision .