net.netheos.pcsapi.providers.cloudme
Class CMBlob

java.lang.Object
  extended by net.netheos.pcsapi.providers.cloudme.CMBlob

public class CMBlob
extends Object

This class represents a CloudMe File It is characterized by an id and the id of its folder


Constructor Summary
CMBlob(CMFolder folder, String id, String name, long length, Date updated, String contentType)
           
 
Method Summary
static CMBlob buildCMFile(CMFolder folder, Element xmlEntry)
          Factory method that builds a CMBlob based on a XML "atom:entry" element
 String getId()
           
 String getName()
           
 CPath getPath()
          Gets CPath of a CloudMe Blob which is its parent folder's CPath + its base name
 CBlob toCBlob()
          Converts a CloudMe Blob to a generic CBlob
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMBlob

public CMBlob(CMFolder folder,
              String id,
              String name,
              long length,
              Date updated,
              String contentType)
Method Detail

toCBlob

public CBlob toCBlob()
Converts a CloudMe Blob to a generic CBlob

Returns:
CBlob

getPath

public CPath getPath()
Gets CPath of a CloudMe Blob which is its parent folder's CPath + its base name

Returns:
CPath

buildCMFile

public static CMBlob buildCMFile(CMFolder folder,
                                 Element xmlEntry)
                          throws ParseException
Factory method that builds a CMBlob based on a XML "atom:entry" element

Parameters:
xmlEntry -
Throws:
ParseException

getId

public String getId()

getName

public String getName()


Copyright © 2014. All Rights Reserved.