org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items
Class JCRImage
java.lang.Object
org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRFile
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
| Fields inherited from class org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRFile |
DATA, nodeId, SIZE |
| 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 |
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
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 © 2013. All Rights Reserved.