org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items
Class JCRImage

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRFile
      extended by org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRImage
All Implemented Interfaces:
org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File, org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image

public class JCRImage
extends JCRFile
implements org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image


Field Summary
 
Fields inherited from class org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRFile
DATA, nodeId
 
Constructor Summary
JCRImage(javax.jcr.Node node)
           
JCRImage(javax.jcr.Node node, InputStream data)
           
 
Method Summary
 int getHeight()
           
 InputStream getThumbnail()
           
 int getThumbnailHeight()
           
 long getThumbnailLength()
           
 int getThumbnailWidth()
           
 int getWidth()
           
 
Methods inherited from class org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRFile
getData, getLength, getMimeType, getName, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
getData, getLength, getMimeType, getName
 

Constructor Detail

JCRImage

public JCRImage(javax.jcr.Node node)
         throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

JCRImage

public JCRImage(javax.jcr.Node node,
                InputStream data)
         throws javax.jcr.RepositoryException,
                IOException
Throws:
javax.jcr.RepositoryException
IOException
Method Detail

getWidth

public int getWidth()
Specified by:
getWidth in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image

getHeight

public int getHeight()
Specified by:
getHeight in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image

getThumbnail

public InputStream getThumbnail()
                         throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Specified by:
getThumbnail in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image
Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException

getThumbnailWidth

public int getThumbnailWidth()
Specified by:
getThumbnailWidth in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image

getThumbnailHeight

public int getThumbnailHeight()
Specified by:
getThumbnailHeight in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image

getThumbnailLength

public long getThumbnailLength()
                        throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Specified by:
getThumbnailLength in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Image
Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException


Copyright © 2012. All Rights Reserved.