info.magnolia.cms.beans.runtime
Class File

java.lang.Object
  extended by info.magnolia.cms.beans.runtime.File

public class File
extends Object

Wraps a NodeData and exposes it into a simple file-like bean.

Version:
1.1
Author:
Sameer Charles

Constructor Summary
File(NodeData data)
           
 
Method Summary
 String getContentType()
           
 String getExtension()
           
 String getFileName()
           
 NodeData getNodeData()
           
 String getNodeDataTemplate()
           
 int getSize()
           
 InputStream getStream()
           
 void setContentType(String contentType)
           
 void setExtension(String extension)
           
 void setFileName(String fileName)
           
 void setNodeDataTemplate(String nodeDataTemplate)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

File

public File(NodeData data)
Method Detail

getExtension

public String getExtension()

setExtension

public void setExtension(String extension)

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

getContentType

public String getContentType()

setContentType

public void setContentType(String contentType)

getNodeDataTemplate

public String getNodeDataTemplate()

setNodeDataTemplate

public void setNodeDataTemplate(String nodeDataTemplate)

getSize

public int getSize()

setSize

public void setSize(int size)

getNodeData

public NodeData getNodeData()

getStream

public InputStream getStream()


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.