@ Override public Object toObject ( byte arr [ ] , int startIndex , int availableSize ) { try { in . resetForReuse ( null ) ; readTarget . setBase ( arr , startIndex , availableSize ) ; Object o = in . readObject ( ) ; return o ; } catch ( Exception e ) { FSTUtil . < RuntimeException > rethrow ( e ) ; } return null ; }
throws FSTBufferTooSmallExcpetion in case object does not fit into given range