public class PoWriter extends Object
Constructor and Description |
---|
PoWriter() |
PoWriter(boolean encodeTabs) |
Modifier and Type | Method and Description |
---|---|
void |
setGenerateHeader(boolean generateHeader) |
void |
write(Catalog catalog,
File file) |
void |
write(Catalog catalog,
OutputStream outputStream) |
void |
write(Catalog catalog,
OutputStream outputStream,
Charset charset) |
void |
write(Catalog catalog,
Writer writer) |
void |
write(Message message,
File file) |
void |
write(Message message,
OutputStream outputStream) |
void |
write(Message message,
OutputStream outputStream,
Charset charset) |
void |
write(Message message,
Writer writer) |
protected void |
writeComment(String prefix,
String comment,
Writer writer) |
protected void |
writeMsgctxt(String prefix,
String ctxt,
Writer writer) |
protected void |
writeMsgid(String prefix,
String msgid,
Writer writer) |
protected void |
writeMsgidPlural(String prefix,
String msgidPlural,
Writer writer) |
protected void |
writeMsgstr(String prefix,
String msgstr,
Writer writer) |
protected void |
writeMsgStrPlural(String prefix,
String msgstr,
int i,
Writer writer) |
protected void |
writeMsgstrPlurals(String prefix,
List<String> msgstrPlurals,
Writer writer) |
protected void |
writeString(String prefix,
String s,
Writer writer,
int firstLineContextWidth) |
protected void |
writeString(String prefix,
String s,
Writer writer,
int firstLineContextWidth,
int colWidth,
int indent) |
public void setGenerateHeader(boolean generateHeader)
public void write(Catalog catalog, File file) throws IOException
IOException
public void write(Catalog catalog, Writer writer) throws IOException
IOException
public void write(Catalog catalog, OutputStream outputStream) throws IOException
IOException
public void write(Catalog catalog, OutputStream outputStream, Charset charset) throws IOException
IOException
public void write(Message message, File file) throws IOException
IOException
public void write(Message message, Writer writer) throws IOException
IOException
public void write(Message message, OutputStream outputStream) throws IOException
IOException
public void write(Message message, OutputStream outputStream, Charset charset) throws IOException
IOException
protected void writeComment(String prefix, String comment, Writer writer) throws IOException
IOException
protected void writeString(String prefix, String s, Writer writer, int firstLineContextWidth, int colWidth, int indent) throws IOException
prefix
- for obsolete entrys
- not null string to outputwriter
- firstLineContextWidth
- number of characters 'context' (e.g. 'msgid ' or 'msgstr ')colWidth
- width of each line in charactersindent
- number of characters to indent each lineIOException
protected void writeString(String prefix, String s, Writer writer, int firstLineContextWidth) throws IOException
IOException
protected void writeMsgctxt(String prefix, String ctxt, Writer writer) throws IOException
IOException
protected void writeMsgid(String prefix, String msgid, Writer writer) throws IOException
IOException
protected void writeMsgidPlural(String prefix, String msgidPlural, Writer writer) throws IOException
IOException
protected void writeMsgstr(String prefix, String msgstr, Writer writer) throws IOException
IOException
protected void writeMsgStrPlural(String prefix, String msgstr, int i, Writer writer) throws IOException
IOException
protected void writeMsgstrPlurals(String prefix, List<String> msgstrPlurals, Writer writer) throws IOException
IOException
Copyright © 2007–2016 JBoss, a division of Red Hat, Inc. All rights reserved.