Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / July 2004

Tip: Looking for answers? Try searching our database.

writing file human non readable

Thread view: 
Qu?bec - 21 Jul 2004 22:12 GMT
Hello, hello all,

I want to write strings to an output file in a human non readable manners.
What are the streams to use
new DataOuputStream(new BufferedOutputStream(new
UnreadableFileOutputStream(    ,"r/w")))?

Jean
Roedy Green - 21 Jul 2004 23:51 GMT
On Wed, 21 Jul 2004 17:12:00 -0400, "Québec" <Once@WasEno.ugh> wrote
or quoted :

>I want to write strings to an output file in a human non readable manners.
>What are the streams to use
>new DataOuputStream(new BufferedOutputStream(new
>UnreadableFileOutputStream(    ,"r/w")))?

see http://mindprod.com/fileio.html
and tell it you want to write binary data.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Qu?bec - 22 Jul 2004 11:04 GMT
> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
????                 jre 1.5==

charger : classe com.mindprod.fileio.FileIO.class introuvable.
java.lang.ClassNotFoundException: com.mindprod.fileio.FileIO.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Roedy Green - 22 Jul 2004 15:26 GMT
On Thu, 22 Jul 2004 06:04:31 -0400, "Québec" <Once@WasEno.ugh> wrote
or quoted :

>> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
>????                 jre 1.5==
>
>charger : classe com.mindprod.fileio.FileIO.class introuvable.

The netload FTP upload failed leaving a empty fileio.jar. This
sometimes happens when the upload tries to replace a file in use.  I
am redoing it.  It should be there shortly. If this sort of thing
happens in future, including general site failure, you can get by with
two other mechanisms:

1. use the replicator to maintain your own local mirror copy of the
site. See http://mindprod.com/jgloss/products.html#SITE

2. download any programs and run them locally.

On my todo list is write a more robust FTP upload.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Qu?bec - 22 Jul 2004 16:52 GMT
I have the site already on disk :-)

Jean
Roedy Green - 22 Jul 2004 17:34 GMT
On Thu, 22 Jul 2004 11:52:21 -0400, "Québec" <Once@WasEno.ugh> wrote
or quoted :

>I have the site already on disk :-)

in that case, if you have a J drive set up,
see http://mindprod.com/jgloss/jdrive.html

you can run the file i/o amanuensis locally with
J:\mindprod\fileio.html

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Craven - 22 Jul 2004 10:01 GMT
"Québec" <Once@WasEno.ugh> wrote in message news:<h%ALc.63225$cR4.811334@weber.videotron.net>...
> Hello, hello all,
>
> I want to write strings to an output file in a human non readable manners.

IIRC, the only stream to output in a human *readable* format is
PrintWriter. The rest will be encoded in a way that isn't human
readable (though they can be easily understood).

Craven.
Qu?bec - 22 Jul 2004 16:51 GMT
Thanks.

I will use a Caesar encrypting trick. It will be enough.

Jean
> "Qu?bec" <Once@WasEno.ugh> wrote in message
news:<h%ALc.63225$cR4.811334@weber.videotron.net>...
> > Hello, hello all,
> >
[quoted text clipped - 5 lines]
>
> Craven.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.