org.gcube.portlets.user.tdw.server.datasource.util
Class TableJSonWriter

java.lang.Object
  extended by org.gcube.portlets.user.tdw.server.datasource.util.GridJSonWriter
      extended by org.gcube.portlets.user.tdw.server.datasource.util.TableJSonWriter

public class TableJSonWriter
extends GridJSonWriter

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.portlets.user.tdw.server.datasource.util.GridJSonWriter
GridJSonWriter.JGridSonWriterState
 
Field Summary
protected  TableDefinition tableDefinition
           
 
Fields inherited from class org.gcube.portlets.user.tdw.server.datasource.util.GridJSonWriter
dataDeclared, fieldsCount, firstColumn, firstField, firstRow, offsetDeclared, rowsCount, state, totalLengthDeclared, writer
 
Constructor Summary
TableJSonWriter(Writer writer, TableDefinition tableDefinition)
           
 
Method Summary
 void endRow()
          Ends the data row.
 void setOffset(int offset)
           
 void setTotalLength(int length)
           
 void startData()
           
 
Methods inherited from class org.gcube.portlets.user.tdw.server.datasource.util.GridJSonWriter
addKey, addValue, addValue, addValue, addValue, addValue, addValue, addValueKey, appendQuoted, checkFirstField, checkState, close, endData, setOffset, setTotalLength, startData, startRow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableDefinition

protected TableDefinition tableDefinition
Constructor Detail

TableJSonWriter

public TableJSonWriter(Writer writer,
                       TableDefinition tableDefinition)
                throws IOException
Throws:
IOException
Method Detail

startData

public void startData()
               throws IOException
Throws:
IOException

endRow

public void endRow()
            throws IOException
Description copied from class: GridJSonWriter
Ends the data row.

Overrides:
endRow in class GridJSonWriter
Throws:
IOException

setTotalLength

public void setTotalLength(int length)
                    throws IOException
Throws:
IOException

setOffset

public void setOffset(int offset)
               throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.