public String downloadText ( final String charsetName , final AccessCondition accessCondition , FileRequestOptions options , OperationContext opContext ) throws StorageException , IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; this . download ( baos , accessCondition , options , opContext ) ; return charsetName == null ? baos . toString ( ) : baos . toString ( charsetName ) ; }
Downloads a file to a string using the specified encoding .