net.netheos.pcsapi.models
Class CBlob

java.lang.Object
  extended by net.netheos.pcsapi.models.CFile
      extended by net.netheos.pcsapi.models.CBlob

public class CBlob
extends CFile

Represents a blob of data as opposed to a folder


Field Summary
 
Fields inherited from class net.netheos.pcsapi.models.CFile
metadata, modificationDate
 
Constructor Summary
CBlob(CPath path)
           
CBlob(CPath path, long length, String contentType)
           
CBlob(CPath path, long length, String contentType, Date modificationDate, CMetadata metadata)
           
 
Method Summary
 String getContentType()
          Get the file content type
 long length()
          Get the file length
 String toString()
           
 
Methods inherited from class net.netheos.pcsapi.models.CFile
getMetadata, getModificationDate, getPath, isBlob, isFolder, setMetadata, setModificationDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CBlob

public CBlob(CPath path,
             long length,
             String contentType)

CBlob

public CBlob(CPath path,
             long length,
             String contentType,
             Date modificationDate,
             CMetadata metadata)

CBlob

public CBlob(CPath path)
Method Detail

getContentType

public String getContentType()
Get the file content type

Returns:
The content type

length

public long length()
Get the file length

Returns:
The length in bytes

toString

public String toString()
Overrides:
toString in class CFile


Copyright © 2014. All Rights Reserved.