org.xiruss.xirussrepository.client
Class TextStorageObjectProxy

java.lang.Object
  extended by org.xiruss.xirussrepository.client.RepositoryObjectProxy
      extended by org.xiruss.xirussrepository.client.VersionProxy
          extended by org.xiruss.xirussrepository.client.StorageObjectProxy
              extended by org.xiruss.xirussrepository.client.TextStorageObjectProxy
All Implemented Interfaces:
StorageObject, TextStorageObject, RepositoryObject, Version
Direct Known Subclasses:
XmlStorageObjectProxy

public class TextStorageObjectProxy
extends StorageObjectProxy
implements TextStorageObject


Field Summary
 
Fields inherited from class org.xiruss.xirussrepository.client.RepositoryObjectProxy
cHelper, logger, objectTypeCode, pathToMe
 
Constructor Summary
TextStorageObjectProxy()
           
 
Method Summary
 java.lang.String getEncoding()
          Returns the character encoding used to represent the text characters as bytes, e.g., "utf-8", "utf-16", "ISO-8859-1", "GB-2312", etc.
 java.io.Reader openReader()
          Opens a character reader for reading the characters of the storage object.
 java.io.Writer openWriter()
          If the version is not fixed (mutable), opens a character writer for writing characters to the storage object.
 
Methods inherited from class org.xiruss.xirussrepository.client.StorageObjectProxy
canWrite, close, getBytes, getMimeType, getOriginalSystemId, initialize, length, loadStorageObjectData, openInputStream, openOutputStream, setStorageObjectData
 
Methods inherited from class org.xiruss.xirussrepository.client.VersionProxy
addDependency, addNextVersion, addPreviousVersion, checkIsNotFixed, collectTargetVersions, dependsOn, dependsOn, getDependencies, getDependenciesByType, getNext, getPathInSnapshotContext, getPrevious, getResource, getVersionMapValue, initialize, initialize, isFixed, loadVersionData, setAsFixed, setPrevious
 
Methods inherited from class org.xiruss.xirussrepository.client.RepositoryObjectProxy
accept, compareTo, doPost, doStringReturnPost, equals, getBooleanValue, getId, getName, getOriginalClassName, getPathToMe, getProperties, getProperty, getPropertyNames, getRepository, getStringReturnValue, getStringSetReturnValue, getType, hasProperty, initialize, isNull, loadRepositoryObjectData, setId, setName, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xiruss.repository.api.StorageObject
canWrite, close, getBytes, getMimeType, getOriginalSystemId, length, openInputStream, openOutputStream, setStorageObjectData
 
Methods inherited from interface org.xiruss.snapcm.api.Version
addDependency, addNextVersion, addPreviousVersion, checkIsNotFixed, collectTargetVersions, dependsOn, dependsOn, getDependencies, getDependenciesByType, getNext, getPrevious, getResource, initialize, initialize, isFixed, setAsFixed, setPrevious
 
Methods inherited from interface org.xiruss.snapcm.api.RepositoryObject
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty, toString
 

Constructor Detail

TextStorageObjectProxy

public TextStorageObjectProxy()
Method Detail

getEncoding

public java.lang.String getEncoding()
Description copied from interface: TextStorageObject
Returns the character encoding used to represent the text characters as bytes, e.g., "utf-8", "utf-16", "ISO-8859-1", "GB-2312", etc.

Specified by:
getEncoding in interface TextStorageObject
Returns:

openReader

public java.io.Reader openReader()
                          throws java.io.IOException
Description copied from interface: TextStorageObject
Opens a character reader for reading the characters of the storage object.

Specified by:
openReader in interface TextStorageObject
Returns:
A new reader.
Throws:
java.io.IOException

openWriter

public java.io.Writer openWriter()
                          throws java.io.IOException,
                                 VersionMutationException
Description copied from interface: TextStorageObject
If the version is not fixed (mutable), opens a character writer for writing characters to the storage object.

Specified by:
openWriter in interface TextStorageObject
Returns:
New writer.
Throws:
java.io.IOException
VersionMutationException - If the version is fixed (immutable).