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
IOExceptionpublic void write(Catalog catalog, Writer writer) throws IOException
IOExceptionpublic void write(Catalog catalog, OutputStream outputStream) throws IOException
IOExceptionpublic void write(Catalog catalog, OutputStream outputStream, Charset charset) throws IOException
IOExceptionpublic void write(Message message, File file) throws IOException
IOExceptionpublic void write(Message message, Writer writer) throws IOException
IOExceptionpublic void write(Message message, OutputStream outputStream) throws IOException
IOExceptionpublic void write(Message message, OutputStream outputStream, Charset charset) throws IOException
IOExceptionprotected void writeComment(String prefix, String comment, Writer writer) throws IOException
IOExceptionprotected 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 lineIOExceptionprotected void writeString(String prefix, String s, Writer writer, int firstLineContextWidth) throws IOException
IOExceptionprotected void writeMsgctxt(String prefix, String ctxt, Writer writer) throws IOException
IOExceptionprotected void writeMsgid(String prefix, String msgid, Writer writer) throws IOException
IOExceptionprotected void writeMsgidPlural(String prefix, String msgidPlural, Writer writer) throws IOException
IOExceptionprotected void writeMsgstr(String prefix, String msgstr, Writer writer) throws IOException
IOExceptionprotected void writeMsgStrPlural(String prefix, String msgstr, int i, Writer writer) throws IOException
IOExceptionprotected void writeMsgstrPlurals(String prefix, List<String> msgstrPlurals, Writer writer) throws IOException
IOExceptionCopyright © 2007–2021 JBoss, a division of Red Hat, Inc. All rights reserved.