public String retrieveData ( String token ) { try { RetrievedContent data = this . s3StorageProvider . getContent ( this . hiddenSpaceName , token ) ; return IOUtil . readStringFromStream ( data . getContentStream ( ) ) ; } catch ( NotFoundException ex ) { return null ; } catch ( Exception ex ) { throw new DuraCloudRuntimeException ( ex ) ; } }
Retrieves string data given its token .