org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items
Class JCRFile
java.lang.Object
org.gcube.portlets.user.homelibrary.jcr.workspace.folder.items.JCRFile
- All Implemented Interfaces:
- org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Direct Known Subclasses:
- JCRImage, JCRPDFFile
public class JCRFile
- extends Object
- implements org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATA
protected static final String DATA
- See Also:
- Constant Field Values
SIZE
protected static final String SIZE
- See Also:
- Constant Field Values
nodeId
protected String nodeId
JCRFile
public JCRFile(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
JCRFile
public JCRFile(javax.jcr.Node node,
String mimeType,
InputStream data)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
JCRFile
public JCRFile(javax.jcr.Node node,
InputStream data)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
save
public void save(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getName
public String getName()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getName in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getMimeType
public String getMimeType()
- Specified by:
getMimeType in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
getData
public InputStream getData()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getData in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
getLength
public long getLength()
throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
- Specified by:
getLength in interface org.gcube.portlets.user.homelibrary.home.workspace.folder.items.File
- Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Copyright © 2013. All Rights Reserved.