¿¹Á¦

public static void main( String[] args ) {
FileWriter fileWriter = null;
try {
fileWriter = new FileWriter("file1"); //$NON-NLS-1$
fileWriter.write( "\uceba" ); //$NON-NLS-1$
} catch ( IOException e ) {
e.printStackTrace();
}
}

¼Ö·ç¼Ç
¹®ÀÚ ÀÎÄÚµù °ªÀ» Á÷Á¢ ÁöÁ¤ÇÏ·Á¸é FileOutputStream¿¡ OutputStreamWriter¸¦ ±¸¼ºÇϽʽÿÀ.

public static void main( String[] args ) {

OutputStreamWriter writer = null;
try {
writer = new OutputStreamWriter(new FileOutputStream("file1"), //$NON-NLS-1$
"UTF-16BE"); //$NON-NLS-1$
writer.write( "\uceba" ); //$NON-NLS-1$
writer.flush();
} catch ( IOException e ) {
e.printStackTrace();
}

}