public class AlpacaFileToken extends Object implements Serializable
AlpacaFile
Constructor and Description |
---|
AlpacaFileToken() |
AlpacaFileToken(String context,
String pathToken) |
Modifier and Type | Method and Description |
---|---|
String |
getAbsolutePath() |
String |
getAlternateName() |
String |
getContext() |
String |
getPathToken() |
String |
getSerializedClass() |
AlpacaFile |
retrieve()
Retrieves the
AlpacaFile for this AlpacaFileToken. |
<T extends BroadWorksObjectInformation> |
retrieve(Type type,
BroadWorksServer broadWorksServer)
Retrieves and deserializes the destination into the provided
BroadWorksObjectInformation type. |
Object |
retrieveAndDeserialize(BroadWorksServer broadWorksServer)
Retrieves the Object from the FileManager and deserializes the Object.
|
void |
save(Serializable object)
Overwrites the data at the AlpacaFileToken with the provided serializable data
|
void |
setAlternateName(String alternateName) |
void |
setContext(String context) |
void |
setPathToken(String pathToken) |
void |
setSerializedClass(String serializedClass) |
public String getAbsolutePath() throws HelperException
HelperException
public String getAlternateName()
public void setAlternateName(String alternateName)
public String getPathToken()
public void setPathToken(String pathToken)
public String getSerializedClass()
public void setSerializedClass(String serializedClass)
public String getContext()
public void setContext(String context)
@GwtIncompatible public void save(Serializable object) throws HelperException, IOException
object
- The object to overwrite at this locationHelperException
- Thrown if an error occurs while savingIOException
- Thrown if an IO error occurs on disk@GwtIncompatible public Object retrieveAndDeserialize(BroadWorksServer broadWorksServer) throws HelperException, IOException, ClassNotFoundException
broadWorksServer
- The BroadWorksServer to deserialize into.HelperException
- Thrown if the serialization class is NULL.IOException
- Throw if unable to retrieve the backing file.ClassNotFoundException
- Throw if unable to find the serialized class.@GwtIncompatible public AlpacaFile retrieve() throws HelperException, IOException
AlpacaFile
for this AlpacaFileToken.HelperException
- Thrown if unable to retrieve the FileManager.IOException
- Throw if unable to retrieve the backing file.@GwtIncompatible public <T extends BroadWorksObjectInformation> T retrieve(Type type, BroadWorksServer broadWorksServer) throws HelperException, IOException
BroadWorksObjectInformation
type.T
- The return BroadWorksObjectInformation
type.type
- The Type
to deserialized the backing data.broadWorksServer
- The BroadWorksServer to deserialize into.HelperException
- Thrown if unable to retrieve the FileManager.IOException
- Throw if unable to retrieve the backing file.Copyright © 2017 ECG. All rights reserved.