public void setTextFrame ( String id , String data ) { if ( ( id . charAt ( 0 ) == ' ' ) && ! id . equals ( ID3v2Frames . USER_DEFINED_TEXT_INFO ) ) { try { byte [ ] b = new byte [ data . length ( ) + 1 ] ; b [ 0 ] = 0 ; System . arraycopy ( data . getBytes ( ENC_TYPE ) , 0 , b , 1 , data . length ( ) ) ; updateFrameData ( id , b ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } } }
Set the data contained in a text frame . This includes all frames with an id that starts with T but excludes TXXX . If an improper id is passed then nothing will happen .