Package com.axemble.vdoc.sdk.impl
Class SnapshotAttachment
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.PortalElement
com.axemble.vdoc.sdk.impl.SnapshotAttachment
- All Implemented Interfaces:
- IAttachment,- IElement,- IProtocolSupport,- IUriSupport,- Serializable
- Author:
- vlygeros
- See Also:
- 
Field SummaryFields inherited from class com.axemble.vdoc.sdk.impl.PortalElementpath, storageKeyFields inherited from class com.axemble.vdoc.sdk.impl.AbstractElementmodule
- 
Constructor SummaryConstructorsConstructorDescriptionSnapshotAttachment(IModule module, com.axemble.webdrive.om.ContentSnapshot contentSnapshot) 
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]voidgetContent(File file) Retrieves the attachment content as a file object.voidgetContent(OutputStream outputStream) Retrieves the attachment content as a stream .Get the stream to read the content Look out to close the stream when finishedgetName()Gets the native object underneath.Get the stream to writte the content Look out to close the stream when finishedlonggetSize()getURI()Gets the URI of the object supporting this interfacebooleanvoidsetContent(byte[] content) Allow to set the content of the attachment by passing an array of bytes.voidsetContent(File file) Allow to set the content of the attachment by passing aFileobject.voidsetContent(InputStream inputStream) Allow to set the content of the attachment by passing aInputStreamobject.voidAllow to set the system name of the attachmentMethods inherited from class com.axemble.vdoc.sdk.impl.PortalElementequals, getId, getPath, getProtocolURI, getProtocolURI, hashCode, replaceBackSlash, replaceSlash, save, setIdMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElementgetModuleMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElementgetId, getModule, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupportgetProtocolURI, getProtocolURI
- 
Constructor Details- 
SnapshotAttachment- Parameters:
- module-
 
 
- 
- 
Method Details- 
getContentDescription copied from interface:IAttachmentRetrieves the attachment content as a file object.- Specified by:
- getContentin interface- IAttachment
- Parameters:
- file- The file object to write to.
 
- 
getContentDescription copied from interface:IAttachmentRetrieves the attachment content as a stream .- Specified by:
- getContentin interface- IAttachment
- Parameters:
- outputStream- The output stream to write to.
 
- 
getContentpublic byte[] getContent()- Specified by:
- getContentin interface- IAttachment
 
- 
getCreatedDate- Specified by:
- getCreatedDatein interface- IAttachment
- Returns:
- The created date
 
- 
getModifiedDate- Specified by:
- getModifiedDatein interface- IAttachment
- Returns:
- The last modified date
 
- 
getName- Specified by:
- getNamein interface- IAttachment
- Returns:
- The system name of the attachment
 
- 
getShortName- Specified by:
- getShortNamein interface- IAttachment
- Returns:
- The short name of the attachment
 
- 
getSizepublic long getSize()- Specified by:
- getSizein interface- IAttachment
- Returns:
- The size of the attachment
 
- 
setContentDescription copied from interface:IAttachmentAllow to set the content of the attachment by passing aFileobject.- Specified by:
- setContentin interface- IAttachment
- Parameters:
- file- The file object
 
- 
setContentDescription copied from interface:IAttachmentAllow to set the content of the attachment by passing aInputStreamobject.- Specified by:
- setContentin interface- IAttachment
- Parameters:
- inputStream- The input stream.
 
- 
setContentpublic void setContent(byte[] content) Description copied from interface:IAttachmentAllow to set the content of the attachment by passing an array of bytes.- Specified by:
- setContentin interface- IAttachment
- Parameters:
- content- The array of bytes.
 
- 
setNameDescription copied from interface:IAttachmentAllow to set the system name of the attachment- Specified by:
- setNamein interface- IAttachment
- Parameters:
- name- The name to set
 
- 
getNativeObjectDescription copied from interface:IElementGets the native object underneath.- Specified by:
- getNativeObjectin interface- IElement
- Returns:
- an object.
 
- 
getURIDescription copied from interface:IUriSupportGets the URI of the object supporting this interface- Specified by:
- getURIin interface- IUriSupport
- Returns:
- A String object.
 
- 
getInputStreamDescription copied from interface:IAttachmentGet the stream to read the content Look out to close the stream when finished- Specified by:
- getInputStreamin interface- IAttachment
- Returns:
- InputStream the stream to read
- Throws:
- IOException
 
- 
getOutputStreamDescription copied from interface:IAttachmentGet the stream to writte the content Look out to close the stream when finished- Specified by:
- getOutputStreamin interface- IAttachment
- Returns:
- OutputStream the stream to writte
- Throws:
- IOException
 
- 
isReadablepublic boolean isReadable()- Specified by:
- isReadablein interface- IAttachment
 
 
-