it.sistematica.isharedoc.webdav.model.fs
Class WebDAVFSDocument

java.lang.Object
  extended by it.sistematica.isharedoc.webdav.model.fs.WebDAVFSFile
      extended by it.sistematica.isharedoc.webdav.model.fs.WebDAVFSDocument
All Implemented Interfaces:
com.ithit.webdav.server.File, com.ithit.webdav.server.HierarchyItem

public class WebDAVFSDocument
extends WebDAVFSFile
implements com.ithit.webdav.server.File


Field Summary
 
Fields inherited from class it.sistematica.isharedoc.webdav.model.fs.WebDAVFSFile
file, parent
 
Constructor Summary
protected WebDAVFSDocument(java.io.File file, com.ithit.webdav.server.Folder parent)
           
 
Method Summary
 long getContentLength()
           
 java.lang.String getContentType()
           
 void read(java.io.OutputStream output, long startIndex, long count)
           
 long write(java.io.InputStream content, java.lang.String contentType, long startIndex, long totalFileSize)
           
 
Methods inherited from class it.sistematica.isharedoc.webdav.model.fs.WebDAVFSFile
copyTo, delete, getCreated, getFile, getModified, getName, getPath, getProperties, getPropertyNames, moveTo, updateProperties, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ithit.webdav.server.HierarchyItem
copyTo, delete, getCreated, getModified, getName, getPath, getProperties, getPropertyNames, moveTo, updateProperties
 

Constructor Detail

WebDAVFSDocument

protected WebDAVFSDocument(java.io.File file,
                           com.ithit.webdav.server.Folder parent)
Method Detail

getContentLength

public long getContentLength()
                      throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getContentLength in interface com.ithit.webdav.server.File
Throws:
com.ithit.webdav.server.exceptions.ServerException

getContentType

public java.lang.String getContentType()
                                throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getContentType in interface com.ithit.webdav.server.File
Throws:
com.ithit.webdav.server.exceptions.ServerException

read

public void read(java.io.OutputStream output,
                 long startIndex,
                 long count)
          throws com.ithit.webdav.server.exceptions.ServerException,
                 java.io.IOException
Specified by:
read in interface com.ithit.webdav.server.File
Throws:
com.ithit.webdav.server.exceptions.ServerException
java.io.IOException

write

public long write(java.io.InputStream content,
                  java.lang.String contentType,
                  long startIndex,
                  long totalFileSize)
           throws com.ithit.webdav.server.exceptions.LockedException,
                  com.ithit.webdav.server.exceptions.ServerException,
                  java.io.IOException
Specified by:
write in interface com.ithit.webdav.server.File
Throws:
com.ithit.webdav.server.exceptions.LockedException
com.ithit.webdav.server.exceptions.ServerException
java.io.IOException