public InputStream getData ( ) { if ( data != null ) { return new ByteArrayInputStream ( data ) ; } else if ( dataStream != null ) { return dataStream ; } else { throw new IllegalStateException ( "Either the byte[] or the stream mustn't be null at this point." ) ; } }
The attachment s data .