java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
- Direct Known Subclasses:
- LogStream
- See Also:
- Top Examples, Source Code,
PrintWriter
public PrintStream append(char c)
- See Also:
- Appendable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream append(CharSequence csq)
- See Also:
- Appendable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream append(CharSequence csq,
int start,
int end)
- See Also:
- IndexOutOfBoundsException, Appendable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean checkError()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void close()
- See Also:
- FilterOutputStream, Closeable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void flush()
- See Also:
- FilterOutputStream, Flushable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream format(String format,
Object... args)
- See Also:
- NullPointerException,
Locale.getDefault()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream format(Locale l,
String format,
Object... args)
- See Also:
- NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void print(boolean b)
- See Also:
write(int)
, String.valueOf(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void print(char c)
- See Also:
write(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void print(char[] s)
- See Also:
- NullPointerException,
write(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void print(double d)
- See Also:
Double.toString(double)
, write(int)
, String.valueOf(double)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void print(float f)
- See Also:
Float.toString(float)
, write(int)
, String.valueOf(float)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void print(int i)
- See Also:
Integer.toString(int)
, write(int)
, String.valueOf(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void print(Object obj)
- See Also:
Object.toString()
, write(int)
, String.valueOf(Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void print(String s)
- See Also:
write(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void print(long l)
- See Also:
Long.toString(long)
, write(int)
, String.valueOf(long)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream printf(String format,
Object... args)
- See Also:
- NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream printf(Locale l,
String format,
Object... args)
- See Also:
- NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void println()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void println(boolean x)
- See Also:
println()
, print(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void println(char x)
- See Also:
println()
, print(char)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void println(char[] x)
- See Also:
println()
, print(char[])
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void println(double x)
- See Also:
println()
, print(double)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[123]_
By Anonymous on 2005/04/27 11:43:04 Rate
System.out.println ( "asdf" ) ;
public void println(float x)
- See Also:
println()
, print(float)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void println(int x)
- See Also:
println()
, print(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void println(Object x)
- See Also:
println()
, print(Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void println(String x)
- See Also:
println()
, print(String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1319]File output demo
By tcesenthil { at } yahoo { dot } com on 2005/02/28 10:07:25 Rate
import java.io.*;
class FileOutputDemo
{
public static void main ( String args [ ] )
{
FileOutputStream out; // declare a file output object
PrintStream p; // declare a print stream object
try
{
// Create a new file output stream
// connected to "myfile.txt"
out = new FileOutputStream ( "myfile.txt" ) ;
// Connect print stream to the output stream
p = new PrintStream ( out ) ;
p.println ( "This is written to a file" ) ;
p.close ( ) ;
}
catch ( Exception e )
{
System.err.println ( "Error writing to file" ) ;
}
}
}
public void println(long x)
- See Also:
println()
, print(long)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream(File file)
throws FileNotFoundException
- See Also:
checkWrite(file.getPath())
, SecurityException, OutputStreamWriter
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream(File file,
String csn)
throws FileNotFoundException,
UnsupportedEncodingException
- See Also:
-
checkWrite(file.getPath())
, SecurityException, charset, OutputStreamWriter
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream(OutputStream out)
- See Also:
PrintWriter.PrintWriter(java.io.OutputStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream(OutputStream out,
boolean autoFlush)
- See Also:
PrintWriter.PrintWriter(java.io.OutputStream, boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream(OutputStream out,
boolean autoFlush,
String encoding)
throws UnsupportedEncodingException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream(String fileName)
throws FileNotFoundException
- See Also:
checkWrite(fileName)
, SecurityException, OutputStreamWriter
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PrintStream(String fileName,
String csn)
throws FileNotFoundException,
UnsupportedEncodingException
- See Also:
-
checkWrite(fileName)
, SecurityException, charset, OutputStreamWriter
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void setError()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void write(byte[] buf,
int off,
int len)
- See Also:
FilterOutputStream.write(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void write(int b)
- See Also:
println(char)
, print(char)
, FilterOutputStream
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples