# getInputStream method

1. @override

InputStream getInputStream()
override

Returns a new InputStream to read the underlying content.

A new stream should be returned each time this method is called. The caller is responsible for closing the stream.

## Implementation

    @override
    InputStream getInputStream() {
      if(_asset != null) {
        return ByteArrayInputStream(_asset!.getContentBytes());
      }

      throw _throwIfNotFound();
    }