public int getCurrentPageSize ( ) { if ( buffer . isEmpty ( ) ) return OggPage . getMinimumPageSize ( ) ; OggPage p = buffer . get ( buffer . size ( ) - 1 ) ; return p . getPageSize ( ) ; }
Returns the size of the page currently being written to including its headers . For a new stream or a stream that has just been flushed will return zero .