examples.postcard
Class Postcard.PrivilegedImageDecoding

java.lang.Object
  extended byexamples.postcard.Postcard.PrivilegedImageDecoding
All Implemented Interfaces:
PrivilegedAction
Enclosing class:
Postcard

class Postcard.PrivilegedImageDecoding
extends Object
implements PrivilegedAction

This privileged action decodes an image from a byte array. Since current Java implementation of ImageIO.read(...) usess a temorary file for encoding this is a privileged action from an agent's point of view.


Field Summary
(package private)  byte[] imageData_
           
 
Constructor Summary
Postcard.PrivilegedImageDecoding(byte[] imageData)
           
 
Method Summary
 Object run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageData_

byte[] imageData_
Constructor Detail

Postcard.PrivilegedImageDecoding

public Postcard.PrivilegedImageDecoding(byte[] imageData)
Method Detail

run

public Object run()
Specified by:
run in interface PrivilegedAction


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.