@ Override public InputStream getContentStream ( Context context ) throws StreamIOException { try { ContentManagerParams params = new ContentManagerParams ( DSLocation ) ; if ( context != null ) { params . setContext ( context ) ; } MIMETypedStream stream = getExternalContentManager ( ) . getExternalContent ( params ) ; DSSize = getContentLength ( stream ) ; return stream . getStream ( ) ; } catch ( Exception ex ) { throw new StreamIOException ( "Error getting content stream" , ex ) ; } }
Gets an InputStream to the content of this externally - referenced datastream .