public void setData ( byte [ ] data , boolean append ) { lastModified = System . currentTimeMillis ( ) ; // set data if ( append ) { if ( this . data != null && data != null ) { byte [ ] newData = new byte [ this . data . length + data . length ] ; int i = 0 ; for ( ; i < this . data . length ; i ++ ) { newData [ i ] = this . data [ i ] ; } for ( ; i < this . data . length + data . length ; i ++ ) { newData [ i ] = data [ i - this . data . length ] ; } this . data = newData ; } else if ( data != null ) { this . data = data ; } } else { this . data = data ; } // set type if ( this . data != null ) this . type = TYPE_FILE ; }
Setzt den Feldnamen data .