com.fatwire.agent
Class ItemProxy

java.lang.Object
  extended by com.fatwire.agent.ItemProxy

public class ItemProxy
extends java.lang.Object

Item proxy. This class is used to store proxy information extracted from IItem by "proxymaker" facility during the IProxyMaker.ExractMetadata() call. A proxy is a low-resolution image describing an item, e.g. a thumbnail for images or the first page for PDF files. It could be one of ProxyType type.


Constructor Summary
ItemProxy(java.lang.String majortype, java.lang.String minortype, byte[] bytes)
          Constructor.
 
Method Summary
 byte[] getBytes()
          Returns this proxy bytes;
 java.lang.String getMajortype()
          Gets the major part of the MIME type of this proxy, e.g.
 java.lang.String getMinortype()
          Gets the minor part of the MIME type of this proxy, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemProxy

public ItemProxy(java.lang.String majortype,
                 java.lang.String minortype,
                 byte[] bytes)
Constructor.

Parameters:
majortype - MIME major type of this proxy, e.g. "image" for "image/jpeg".
minortype - MIME minor type of this proxy, e.g. "jpeg" for "image/jpeg".
proxy - data in bytes.
Method Detail

getMajortype

public java.lang.String getMajortype()
Gets the major part of the MIME type of this proxy, e.g. "image" for "image/jpeg".

Returns:
major type.

getMinortype

public java.lang.String getMinortype()
Gets the minor part of the MIME type of this proxy, e.g. "jpeg" for "image/jpeg".

Returns:
major type.

getBytes

public byte[] getBytes()
Returns this proxy bytes;

Returns:
proxy bytes;