|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.nuiton.util.csv.Export<E>
public class Export<E>
Object to realize a export from a ExportModel and some datas.
Export.exportToFile(model, data, file);
Export.exportToWriter(model, data, writer);
String exportcontent = Export.exportToString(model, data);
Export<E> exporter = Export.newExport(model, data);
| Field Summary | |
|---|---|
protected Iterable<E> |
data
|
protected ExportModel<E> |
model
|
| Constructor Summary | |
|---|---|
protected |
Export(ExportModel<E> model,
Iterable<E> data)
|
| Method Summary | ||
|---|---|---|
static
|
exportToFile(ExportModel<E> model,
Iterable<E> data,
File file)
|
|
static
|
exportToFile(ExportModel<E> model,
Iterable<E> data,
File file,
Charset charset)
|
|
void |
exportToFile(File file)
Deprecated. since 2.4.3, use write(java.io.File) instead. |
|
static
|
exportToString(ExportModel<E> model,
Iterable<E> data)
|
|
static
|
exportToString(ExportModel<E> model,
Iterable<E> data,
Charset charset)
|
|
static
|
exportToWriter(ExportModel<E> model,
Iterable<E> data,
Writer writer)
|
|
static
|
newExport(ExportModel<E> model,
Iterable<E> data)
|
|
InputStream |
startExport()
Deprecated. since 2.4.3. It's not the role of the API to give an InputStream you can use toString(java.nio.charset.Charset) and
IOUtils.toInputStream(String) |
|
void |
startExport(Writer writer)
Deprecated. since 2.4.3, use write(java.io.Writer) instead. |
|
String |
startExportAsString()
Deprecated. since 2.4.3, use toString(java.nio.charset.Charset) instead. |
|
String |
toString(Charset charset)
|
|
void |
write(File file)
|
|
void |
write(File file,
Charset charset)
|
|
void |
write(OutputStream outputStream)
|
|
void |
write(OutputStream outputStream,
Charset charset)
|
|
void |
write(Writer writer)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ExportModel<E> model
protected Iterable<E> data
| Constructor Detail |
|---|
protected Export(ExportModel<E> model,
Iterable<E> data)
| Method Detail |
|---|
public static <E> Export<E> newExport(ExportModel<E> model,
Iterable<E> data)
public static <E> void exportToWriter(ExportModel<E> model,
Iterable<E> data,
Writer writer)
throws Exception
Exception
public static <E> void exportToFile(ExportModel<E> model,
Iterable<E> data,
File file)
throws Exception
Exception
public static <E> void exportToFile(ExportModel<E> model,
Iterable<E> data,
File file,
Charset charset)
throws Exception
Exception
public static <E> String exportToString(ExportModel<E> model,
Iterable<E> data)
throws Exception
Exception
public static <E> String exportToString(ExportModel<E> model,
Iterable<E> data,
Charset charset)
throws Exception
Exception
public void write(Writer writer)
throws Exception
Exception
public void write(OutputStream outputStream,
Charset charset)
throws Exception
Exception
public void write(OutputStream outputStream)
throws Exception
Exception
public void write(File file,
Charset charset)
throws Exception
Exception
public void write(File file)
throws Exception
Exception
public String toString(Charset charset)
throws Exception
Exception
@Deprecated
public void exportToFile(File file)
throws Exception
write(java.io.File) instead.
Exception
@Deprecated
public void startExport(Writer writer)
throws Exception
write(java.io.Writer) instead.
Exception
@Deprecated
public String startExportAsString()
throws Exception
toString(java.nio.charset.Charset) instead.
Exception
@Deprecated
public InputStream startExport()
throws Exception
toString(java.nio.charset.Charset) and
IOUtils.toInputStream(String)
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||