public static RevisionDataOutputStream wrap ( OutputStream outputStream ) throws IOException { if ( outputStream instanceof RandomAccessOutputStream ) { return new RandomRevisionDataOutput ( outputStream ) ; } else { return new NonSeekableRevisionDataOutput ( outputStream ) ; } }
Wraps the given OutputStream into a specific implementation of RevisionDataOutputStream .