Package | Description |
---|---|
org.alfresco.repo.content | |
org.alfresco.service.cmr.repository |
Modifier and Type | Method and Description |
---|---|
ContentReader |
ContentContext.getExistingContentReader() |
ContentReader |
ContentStore.getReader(String contentUrl)
Get the accessor with which to read from the content at the given URL.
|
Modifier and Type | Method and Description |
---|---|
String |
MimetypeMap.getMimetypeIfNotMatches(ContentReader reader)
Use Apache Tika to check if the mime type of the document really matches
what it claims to be.
|
String |
MimetypeMap.guessMimetype(String filename,
ContentReader reader)
Uses Tika to try to identify the mimetype of the file, falling back on
MimetypeMap.guessMimetype(String) for an extension based one if Tika can't
help. |
Constructor and Description |
---|
ContentContext(ContentReader existingContentReader,
String contentUrl)
Construct the instance with the content URL.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FileContentReader
Extension to
ContentReader for Readers which are able to
make the backing file available to you. |
Modifier and Type | Method and Description |
---|---|
ContentReader |
ContentReader.getReader()
Convenience method to get another reader onto the underlying content.
|
ContentReader |
ContentWriter.getReader()
Convenience method to get a reader onto newly written content.
|
Modifier and Type | Method and Description |
---|---|
String |
MimetypeService.getMimetypeIfNotMatches(ContentReader reader)
Use detection heuristics to check if the mime type of the document really
matches what it claims to be.
|
String |
MimetypeService.guessMimetype(String filename,
ContentReader reader)
Provides a non-null best guess of the appropriate mimetype for a
given file.
|
void |
ContentWriter.putContent(ContentReader reader)
Copies content from the reader.
|
Copyright © 2005–2018 Alfresco Software. All rights reserved.