public void cacheStatusObjects ( ) { cachedStatusObjects = new HashMap < String , byte [ ] > ( ) ; String statusCode ; IoBuffer out = IoBuffer . allocate ( 256 ) ; out . setAutoExpand ( true ) ; for ( String s : statusObjects . keySet ( ) ) { statusCode = s ; StatusObject statusObject = statusObjects . get ( statusCode ) ; if ( statusObject instanceof RuntimeStatusObject ) { continue ; } serializeStatusObject ( out , statusObject ) ; out . flip ( ) ; if ( log . isTraceEnabled ( ) ) { log . trace ( HexDump . formatHexDump ( out . getHexDump ( ) ) ) ; } byte [ ] cachedBytes = new byte [ out . limit ( ) ] ; out . get ( cachedBytes ) ; out . clear ( ) ; cachedStatusObjects . put ( statusCode , cachedBytes ) ; } out . free ( ) ; out = null ; }
Cache status objects