public class

LinkedFile

extends Object
java.lang.Object
   ↳ com.kinvey.java.LinkedResources.LinkedFile

Class Overview

This class maintains metadata and java specific file access to a File associated with an Entity through the com.kinvey.java.LinkedData API. There are references to a `ByteArrayInputStream as well as a `ByteArrayOutputStream`, which can be used to stream to/from the file. NOTE: It is the responsibility of the client application to close these streams appropriately after usage.

Summary

Public Constructors
LinkedFile(String fileName)
Constructor for a LinkedFile
Public Methods
String getFileName()
Get the file name of a Linked File
ByteArrayInputStream getInput()
ByteArrayOutputStream getOutput()
boolean isResolve()
void setFileName(String fileName)
void setInput(ByteArrayInputStream input)
void setOutput(ByteArrayOutputStream output)
void setResolve(boolean resolve)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LinkedFile (String fileName)

Constructor for a LinkedFile

Parameters
fileName - the FileName of the Linked File

Public Methods

public String getFileName ()

Get the file name of a Linked File

Returns
  • the file name

public ByteArrayInputStream getInput ()

public ByteArrayOutputStream getOutput ()

public boolean isResolve ()

public void setFileName (String fileName)

public void setInput (ByteArrayInputStream input)

public void setOutput (ByteArrayOutputStream output)

public void setResolve (boolean resolve)