olg.csv.base
Class AbstractSheetWriter

Package class diagram package AbstractSheetWriter
java.lang.Object
  extended by olg.csv.base.AbstractSheetWriter
All Implemented Interfaces:
Closeable, IWriter
Direct Known Subclasses:
ODSWriter

public abstract class AbstractSheetWriter
extends Object
implements IWriter

Abstract class for SpreadSheet document writer. Embeds some Sheet writer characteristics. Not a great interest : Provides a settings validation on instanciation.


Field Summary
protected  Integer beginAtColumn
          Index from which begin the row writing.
protected  Integer beginAtRow
          Index from which begin the writing.
protected  String sheetName
          the sheet name on which write.
protected  boolean withHeaders
          Indicate if an header row must be written.
 
Constructor Summary
protected AbstractSheetWriter(AbstractSheetSettings<? extends AbstractSheetSettings<?>> settings)
           
 
Method Summary
 String getSheetName()
          Returns the sheet name.
 boolean isWithHeaders()
          Indicates if a header row must be written.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface olg.csv.base.IWriter
addLine, addRow
 
Methods inherited from interface java.io.Closeable
close
 

Field Detail

sheetName

protected String sheetName
the sheet name on which write.


beginAtRow

protected Integer beginAtRow
Index from which begin the writing.


beginAtColumn

protected Integer beginAtColumn
Index from which begin the row writing.


withHeaders

protected boolean withHeaders
Indicate if an header row must be written.

Constructor Detail

AbstractSheetWriter

protected AbstractSheetWriter(AbstractSheetSettings<? extends AbstractSheetSettings<?>> settings)
Parameters:
settings - the settings.
Method Detail

getSheetName

public String getSheetName()
Returns the sheet name.

Returns:
the sheet name.

isWithHeaders

public boolean isWithHeaders()
Indicates if a header row must be written.

Specified by:
isWithHeaders in interface IWriter
Returns:
if a header row must be written


Copyright © 2014. All Rights Reserved.