char [ ] print ( T bean ) { char [ ] output = new char [ type . length ( ) ] ; Arrays . fill ( output , type . fill ( ) ) ; for ( Slot slot : slots . values ( ) ) { if ( ! slot . reference . isReadable ( ) ) { continue ; } Object value = slot . reference . readValue ( bean ) ; CharSequence content = slot . converter . toCharacters ( value ) ; if ( content . length ( ) > slot . field . length ( ) ) { content = slot . field . trim ( ) . trim ( content , slot . field . length ( ) , slot . field . align ( ) ) ; } slot . field . align ( ) . fill ( content , output , slot . field . start ( ) , slot . field . length ( ) , slot . fill ) ; } return output ; }
Print bean into given char array FIXME It s not completely working yet