openContentStream method

List<int> openContentStream(
  1. ArchiveFile contentFileEntry
)

Implementation

List<int> openContentStream(ArchiveFile contentFileEntry) {
  final contentStream = <int>[];
  if (contentFileEntry.content == null) {
    throw Exception(
        'Incorrect EPUB file: content file \"$fileName\" specified in manifest is not found.');
  }
  contentStream.addAll(contentFileEntry.content);
  return contentStream;
}