net.ranides.assira.text
Class NamedFormatter
java.lang.Object
net.ranides.assira.text.NamedFormatter
- All Implemented Interfaces:
- Closeable, Flushable
public class NamedFormatter
- extends Object
- implements Closeable, Flushable
- Author:
- ranides
|
Constructor Summary |
NamedFormatter()
|
NamedFormatter(Appendable target)
|
NamedFormatter(Appendable target,
Locale locale)
|
NamedFormatter(File file)
|
NamedFormatter(File file,
String charset)
|
NamedFormatter(File file,
String charset,
Locale locale)
|
NamedFormatter(Locale locale)
|
NamedFormatter(OutputStream stream)
|
NamedFormatter(OutputStream stream,
String charset)
|
NamedFormatter(OutputStream stream,
String charset,
Locale locale)
|
NamedFormatter(PrintStream stream)
|
NamedFormatter(String fileName)
|
NamedFormatter(String fileName,
String csn)
|
NamedFormatter(String fileName,
String charset,
Locale locale)
|
|
Method Summary |
void |
close()
|
static Pattern |
compile(Locale lang,
String format,
Object args,
Object... params)
|
static Pattern |
compile(String format,
Object args,
Object... params)
|
void |
flush()
|
NamedFormatter |
format(Locale locale,
String format,
Object args,
Object... params)
|
NamedFormatter |
format(String format,
Object args,
Object... params)
|
IOException |
ioException()
|
Locale |
locale()
|
Appendable |
out()
|
static String |
str(Locale lang,
String format,
Object args,
Object... params)
|
static String |
str(String format,
Object args,
Object... params)
|
String |
toString()
|
NamedFormatter
public NamedFormatter()
NamedFormatter
public NamedFormatter(Appendable target)
NamedFormatter
public NamedFormatter(Appendable target,
Locale locale)
NamedFormatter
public NamedFormatter(File file)
throws FileNotFoundException
- Throws:
FileNotFoundException
NamedFormatter
public NamedFormatter(File file,
String charset)
throws FileNotFoundException,
UnsupportedEncodingException
- Throws:
FileNotFoundException
UnsupportedEncodingException
NamedFormatter
public NamedFormatter(File file,
String charset,
Locale locale)
throws FileNotFoundException,
UnsupportedEncodingException
- Throws:
FileNotFoundException
UnsupportedEncodingException
NamedFormatter
public NamedFormatter(Locale locale)
NamedFormatter
public NamedFormatter(OutputStream stream)
NamedFormatter
public NamedFormatter(OutputStream stream,
String charset)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
NamedFormatter
public NamedFormatter(OutputStream stream,
String charset,
Locale locale)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
NamedFormatter
public NamedFormatter(PrintStream stream)
NamedFormatter
public NamedFormatter(String fileName)
throws FileNotFoundException
- Throws:
FileNotFoundException
NamedFormatter
public NamedFormatter(String fileName,
String csn)
throws FileNotFoundException,
UnsupportedEncodingException
- Throws:
FileNotFoundException
UnsupportedEncodingException
NamedFormatter
public NamedFormatter(String fileName,
String charset,
Locale locale)
throws FileNotFoundException,
UnsupportedEncodingException
- Throws:
FileNotFoundException
UnsupportedEncodingException
close
public void close()
- Specified by:
close in interface Closeable
flush
public void flush()
- Specified by:
flush in interface Flushable
format
public NamedFormatter format(Locale locale,
String format,
Object args,
Object... params)
format
public NamedFormatter format(String format,
Object args,
Object... params)
str
public static String str(Locale lang,
String format,
Object args,
Object... params)
str
public static String str(String format,
Object args,
Object... params)
compile
public static Pattern compile(Locale lang,
String format,
Object args,
Object... params)
compile
public static Pattern compile(String format,
Object args,
Object... params)
ioException
public IOException ioException()
locale
public Locale locale()
out
public Appendable out()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.