|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.MIME.AbstractHandler
org.hd.d.pg2k.svrCore.mediahandler.swf
public final class swf
Basic handler for SWF file (MacroMedia Shockwave Flash).
| Nested Class Summary | |
|---|---|
static class |
swf.SWFMetaData
Immutable meta-data for SWF exhibit. |
| Nested classes/interfaces inherited from interface org.hd.d.pg2k.svrCore.MIME.Handler |
|---|
Handler.ThumbnailParams |
| Field Summary | |
|---|---|
private static int |
TWIPS_TO_PIXELS
TWIPS to pixels scaling factor assuming 72dpi screen resolution. |
| Fields inherited from interface org.hd.d.pg2k.svrCore.MIME.Handler |
|---|
TAG_NAME_METADATA_TOP |
| Constructor Summary | |
|---|---|
swf()
|
|
| Method Summary | |
|---|---|
java.awt.Dimension |
get2DImageDimensions(java.io.InputStream is)
Efficiently get X,Y pixel dimensions of SWF exhibit, else null if dimensions cannot be computed. |
ExhibitMIME.ExhibitTypeParameters |
getExhibitType()
Get internal type of ExhibitMIME type; never null. |
org.w3c.dom.Node |
getMetadata(java.io.InputStream is,
Name.ExhibitFull exhibitName)
Gets all available exhibit metadata as a single XML DOM tree; null if none. |
| Methods inherited from class org.hd.d.pg2k.svrCore.MIME.AbstractHandler |
|---|
canMakeThumbnails, decodeImage, getThumbnailParams, makeImageBinary, makeSizeConstrainedEncodedImage, makeThumbnails, makeThumbnails |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int TWIPS_TO_PIXELS
| Constructor Detail |
|---|
public swf()
| Method Detail |
|---|
public ExhibitMIME.ExhibitTypeParameters getExhibitType()
public java.awt.Dimension get2DImageDimensions(java.io.InputStream is)
throws java.io.IOException
This should work efficiently, by directly reading (opening) bytes of the exhibit passed as an input stream.
This will only work correctly if the exhibit is of the correct type, eg its magic number must already have been tested.
get2DImageDimensions in interface Handlerget2DImageDimensions in class AbstractHandleris - the exhibit as a binary data stream
java.io.IOException - in case of problems with corrupt data
(or a broken exhibit)
public org.w3c.dom.Node getMetadata(java.io.InputStream is,
Name.ExhibitFull exhibitName)
This implementation synthesises a metadata tree from the AudioFileFormat data, if any.
getMetadata in interface HandlergetMetadata in class AbstractHandleris - input stream; never nullexhibitName - TODO
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||