@ Override public void writeVectorInt ( Vector < Integer > vector ) { log . debug ( "writeVectorInt: {}" , vector ) ; writeAMF3 ( ) ; buf . put ( AMF3 . TYPE_VECTOR_INT ) ; if ( hasReference ( vector ) ) { putInteger ( getReferenceId ( vector ) << 1 ) ; return ; } storeReference ( vector ) ; putInteger ( vector . size ( ) << 1 | 1 ) ; buf . put ( ( byte ) 0x00 ) ; for ( Integer v : vector ) { buf . putInt ( v ) ; } // debug if ( log . isDebugEnabled ( ) ) { int pos = buf . position ( ) ; buf . position ( 0 ) ; StringBuilder sb = new StringBuilder ( ) ; HexDump . dumpHex ( sb , buf . array ( ) ) ; log . debug ( "\n{}" , sb ) ; buf . position ( pos ) ; } }
Write a Vector&lt ; int&gt ; .