Package | Description |
---|---|
nl.siegmann.epublib.domain | |
nl.siegmann.epublib.epub | |
nl.siegmann.epublib.service |
Modifier and Type | Method and Description |
---|---|
MediaType |
Resource.getMediaType()
This resource's mediaType.
|
Modifier and Type | Method and Description |
---|---|
static Resource |
Resources.findFirstResourceByMediaType(Collection<Resource> resources,
MediaType mediaType)
Gets the first resource (random order) with the give mediatype.
|
Resource |
Resources.findFirstResourceByMediaType(MediaType mediaType)
Gets the first resource (random order) with the give mediatype.
|
List<Resource> |
Resources.getResourcesByMediaType(MediaType mediaType)
All resources that have the given MediaType.
|
List<Resource> |
Resources.getResourcesByMediaTypes(MediaType[] mediaTypes)
All Resources that match any of the given list of MediaTypes
|
void |
Resource.setMediaType(MediaType mediaType) |
Constructor and Description |
---|
Resource(byte[] data,
MediaType mediaType)
Creates a Resource with the given data and MediaType.
|
Resource(String id,
byte[] data,
String href,
MediaType mediaType)
Creates a resource with the given id, data, mediatype at the specified href.
|
Resource(String id,
byte[] data,
String href,
MediaType mediaType,
String inputEncoding)
Creates a resource with the given id, data, mediatype at the specified href.
|
Modifier and Type | Method and Description |
---|---|
static Resources |
ResourcesLoader.loadResources(ZipFile zipFile,
String defaultHtmlEncoding,
List<MediaType> lazyLoadedTypes)
Loads the entries of the zipFile as resources.
|
Book |
EpubReader.readEpubLazy(ZipFile zipFile,
String encoding,
List<MediaType> lazyLoadedTypes)
Reads this EPUB without loading all resources into memory.
|
Modifier and Type | Field and Description |
---|---|
static MediaType |
MediatypeService.CSS |
static MediaType |
MediatypeService.EPUB |
static MediaType |
MediatypeService.GIF |
static MediaType |
MediatypeService.JAVASCRIPT |
static MediaType |
MediatypeService.JPG |
static MediaType[] |
MediatypeService.mediatypes |
static MediaType |
MediatypeService.MP3 |
static MediaType |
MediatypeService.MP4 |
static MediaType |
MediatypeService.NCX |
static MediaType |
MediatypeService.OGG |
static MediaType |
MediatypeService.OPENTYPE |
static MediaType |
MediatypeService.PLS |
static MediaType |
MediatypeService.PNG |
static MediaType |
MediatypeService.SMIL |
static MediaType |
MediatypeService.SVG |
static MediaType |
MediatypeService.TTF |
static MediaType |
MediatypeService.WOFF |
static MediaType |
MediatypeService.XHTML |
static MediaType |
MediatypeService.XPGT |
Modifier and Type | Field and Description |
---|---|
static Map<String,MediaType> |
MediatypeService.mediaTypesByName |
Modifier and Type | Method and Description |
---|---|
static MediaType |
MediatypeService.determineMediaType(String filename)
Gets the MediaType based on the file extension.
|
static MediaType |
MediatypeService.getMediaTypeByName(String mediaTypeName) |
Modifier and Type | Method and Description |
---|---|
static boolean |
MediatypeService.isBitmapImage(MediaType mediaType) |
Copyright © 2009–2017. All rights reserved.