com.trackstudio.tools
Class TableTransform.TableTextWriter

java.lang.Object
  extended by java.io.Writer
      extended by com.trackstudio.tools.TableTransform.TableTextWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable
Enclosing class:
TableTransform

public static class TableTransform.TableTextWriter
extends java.io.Writer

Класс для записи данных


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TableTransform.TableTextWriter(java.io.Writer internal, int columns, int[] columnPos)
          Конструктор
 
Method Summary
 void close()
          ЗАкрывает поток
 void feedLine()
          Обрабатывает линию
 void flush()
          Сбрасывает данные
 void write(char[] cbuf, int off, int len)
          Пишет данные
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableTransform.TableTextWriter

public TableTransform.TableTextWriter(java.io.Writer internal,
                                      int columns,
                                      int[] columnPos)
Конструктор

Parameters:
internal - объект для вывода данных
columns - количество колонок
columnPos - позиции колонок
Method Detail

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Пишет данные

Specified by:
write in class java.io.Writer
Parameters:
cbuf - что пишет
off - куда
len - длина записи
Throws:
java.io.IOException - при необходимости

feedLine

public void feedLine()
              throws java.io.IOException
Обрабатывает линию

Throws:
java.io.IOException - при необходимости

flush

public void flush()
           throws java.io.IOException
Сбрасывает данные

Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer
Throws:
java.io.IOException - при необходимости

close

public void close()
           throws java.io.IOException
ЗАкрывает поток

Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer
Throws:
java.io.IOException - при необходимости


Copyright © 2002-2009 TrackStudio, Ltd. All Rights Reserved.