com.extentech.ExtenXLS.web
Class MemeDoc

java.lang.Object
  extended by com.extentech.ExtenXLS.DocumentHandle
      extended by com.extentech.ExtenXLS.web.MemeDocument
          extended by com.extentech.ExtenXLS.web.MemeDoc
All Implemented Interfaces:
Document, Handle, com.extentech.toolkit.LogOutputter, Closeable
Direct Known Subclasses:
WebDoc

public class MemeDoc
extends MemeDocument

this is a Word Doc specific MemeDocument

Author:
john :: May 16, 2010 :: Copyright ©2011Extentech Inc.

Field Summary
 
Fields inherited from class com.extentech.ExtenXLS.web.MemeDocument
ACCESS_STATUS_PRIVATE, ACCESS_STATUS_PUBLIC, ACCESS_STATUS_SHARED, FILE_TYPE_NATIVE, FILE_TYPE_XLS, FILE_TYPE_XLSX, FILE_TYPE_XMLSS, MEME_TYPE, STORAGE_LOCATION_DB, STORAGE_LOCATION_FILESYSTEM, STORAGE_LOCATION_S3
 
Fields inherited from class com.extentech.ExtenXLS.DocumentHandle
FORMAT_NATIVE
 
Fields inherited from interface com.extentech.ExtenXLS.Document
DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM
 
Constructor Summary
MemeDoc()
          May 19, 2010
MemeDoc(Connection conn, File tempfile)
          May 19, 2010
MemeDoc(Connection cx, int memeid)
          May 20, 2010
MemeDoc(com.extentech.ExtenDOC.DocHandle doc)
          May 31, 2011
MemeDoc(InputStream input)
           
MemeDoc(String tmpFilePath)
          May 20, 2010
MemeDoc(com.extentech.security.User user)
          Jun 1, 2011
 
Method Summary
 void close()
           
 String getAllStringsInDocument()
           
 String getAllText()
           
 String getFileExtension()
          Gets the file name extension for this document's native format.
 int getFormat()
          Gets the constant representing this document's native format.
 com.extentech.ExtenDOC.TextRangeHandle[] getTextRangeHandle()
           
 String getXML()
          get the xhtml for this document
 void load(int memeid)
          initialize the WorkBook from underlying data
 void reset()
          Resets the document state to what it was when it was loaded.
 DocumentHandle revert()
          retrieve the latest from the db and replaces current workbook
 void write(OutputStream out)
          Writes the document to the given stream in its native format.
 void write(OutputStream dest, int format)
          Writes the document to the given stream in the requested format.
 void write(String fname)
           
 void write(String fname, boolean Excel2007Format)
           
 StringBuffer writeBytes(OutputStream bbout)
           
 
Methods inherited from class com.extentech.ExtenXLS.web.MemeDocument
addUser, appendOutputDir, bindData, deleteDocument, documentStorageLocation, getAllDiffs, getBook, getConcurrentUsers, getConnection, getCryptPass, getDataFactory, getDatamapping, getDefaultFileString, getFile, getLatestDiff, getMemeId, getMemeResolved, getMemeType, getMessageManager, getOutputDir, getOwnerId, getRESTEmit, getRESTlog, getSaveAsFileType, getScript, getServerURL, getSession, getSharingAccess, getStorageLocation, getTempfile, getXMLStream, isPublic, isSaved, load, loadDataDefinition, loadDataDefinition, log, log, log, setConnection, setCryptPass, setDataFactory, setDatamapping, setFile, setMemeId, setMemeResolved, setMemeType, setMessageManager, setOutputDir, setOwnerId, setRESTlog, setSaveAsFileType, setSaved, setScript, setServerURL, setSession, setSharingAccess, setStorageLocation, setTempfile, setVal, storeDiff
 
Methods inherited from class com.extentech.ExtenXLS.DocumentHandle
addProperty, getFileName, getInstance, getName, getProperties, getProperty, getVersion, setDebugLevel, setFileName, setName, setProperties, toString, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemeDoc

public MemeDoc()
May 19, 2010

Parameters:
conn -
tempfile -

MemeDoc

public MemeDoc(Connection conn,
               File tempfile)
        throws IOException
May 19, 2010

Parameters:
conn -
tempfile -
Throws:
IOException

MemeDoc

public MemeDoc(Connection cx,
               int memeid)
May 20, 2010

Parameters:
conn -
intValue -
storeBookAsFile -
storeAsXML -

MemeDoc

public MemeDoc(String tmpFilePath)
May 20, 2010

Parameters:
tmpFilePath -

MemeDoc

public MemeDoc(InputStream input)

MemeDoc

public MemeDoc(com.extentech.ExtenDOC.DocHandle doc)
May 31, 2011

Parameters:
doc -

MemeDoc

public MemeDoc(com.extentech.security.User user)
Jun 1, 2011

Parameters:
user -
Method Detail

getXML

public String getXML()
              throws IOException
get the xhtml for this document

Specified by:
getXML in class MemeDocument
Returns:
Throws:
IOException

write

public void write(OutputStream out)
           throws IOException
Description copied from class: DocumentHandle
Writes the document to the given stream in its native format.

Overrides:
write in class DocumentHandle
Parameters:
out -
Throws:
IOException
See Also:
DocumentHandle.write(java.io.OutputStream)

write

public void write(String fname,
                  boolean Excel2007Format)
Parameters:
fname -
Excel2007Format -
See Also:
com.extentech.ExtenDOC.DocHandle#write(java.lang.String, boolean)

write

public void write(String fname)
           throws IOException
Parameters:
fname -
Throws:
IOException
See Also:
com.extentech.ExtenDOC.DocHandle#write(java.lang.String)

writeBytes

public StringBuffer writeBytes(OutputStream bbout)
                        throws IOException
Parameters:
bbout -
Returns:
Throws:
IOException
See Also:
com.extentech.ExtenDOC.DocHandle#writeBytes(java.io.OutputStream)

getAllText

public String getAllText()
Returns:
See Also:
DocHandle.getAllText()

getTextRangeHandle

public com.extentech.ExtenDOC.TextRangeHandle[] getTextRangeHandle()
Returns:
See Also:
com.extentech.ExtenDOC.DocHandle#getTextRangeHandle()

getAllStringsInDocument

public String getAllStringsInDocument()
Specified by:
getAllStringsInDocument in class MemeDocument
See Also:
MemeDocument.getAllStringsInDocument()

load

public void load(int memeid)
Description copied from class: MemeDocument
initialize the WorkBook from underlying data

Specified by:
load in class MemeDocument
See Also:
MemeDocument.load(int)

revert

public DocumentHandle revert()
Description copied from class: MemeDocument
retrieve the latest from the db and replaces current workbook

Specified by:
revert in class MemeDocument
Returns:
new WorkBook
See Also:
MemeDocument.revert()

getFileExtension

public String getFileExtension()
Description copied from class: DocumentHandle
Gets the file name extension for this document's native format.

Specified by:
getFileExtension in class DocumentHandle
See Also:
DocumentHandle.getFileExtension()

getFormat

public int getFormat()
Description copied from class: DocumentHandle
Gets the constant representing this document's native format.

Specified by:
getFormat in class DocumentHandle
See Also:
DocumentHandle.getFormat()

reset

public void reset()
Description copied from class: DocumentHandle
Resets the document state to what it was when it was loaded.

Specified by:
reset in interface Document
Specified by:
reset in class DocumentHandle
See Also:
DocumentHandle.reset()

write

public void write(OutputStream dest,
                  int format)
           throws IOException
Description copied from class: DocumentHandle
Writes the document to the given stream in the requested format.

Specified by:
write in class DocumentHandle
Parameters:
dest - the stream to which the document should be written
format - the constant representing the desired output format
Throws:
IOException - if an error occurs while writing to the stream
See Also:
DocumentHandle.write(java.io.OutputStream, int)

close

public void close()
           throws IOException
Throws:
IOException
See Also:
Closeable.close()


Copyright © 2011 Extentech Inc. All Rights Reserved.