File I O Amanuensis

Generates sample Java code to do 617 types of I/O.

I/O teaching tool that generates sample Java source code to read or write the console, a sequential file, a random access file, a String, an array of characters, an array of bytes, URL, HTTP CGI GET/POST, Socket, resource or Pipe. It shows you how to read or write ASCII-8 bit characters (plain or locale-encoded), Unicode 16-bit characters, raw bytes, big endian binary, little endian binary, or serialised objects, buffered, unbuffered or gzip compressed. FileIO runs either as an application or as an Applet that needs to run in JDK 1.7+ capable browser. Source code and sample HTML included. May be freely distributed and used for any purpose except military. It works by asking you 4 multiple choice questions about what you want to do. You fill in your choices in a dialog box at it instantly generates the corresponding code that you can copy/paste and modify. 1) What is the type of the source/target? - sequential file - resource - random access file - String (in RAM i/o) - char[] (in RAM i/o) - byte[] (in RAM i/o) - URL (remote i/o) - HTTP CGI - socket - pipe 2) Do you want to read or write? 3) Which do you want: unbuffered, buffered or compressed? 4) What is the format of the data being read or written? - raw, untranslated, bulk, 8-bit bytes - default-encoded chars (usually 8-bit) - locale-encoded chars (usually 8-bit), e.g. IBM-OEM Cp437 - Unicode 16-bit chars - big-endian binary (Java standard) - little-endian binary (Intel standard) - serialised objects It generates 617 possible different example programs. You can run it online at mindprod.com/applet/fileio.html without installing it.

Changes: Optimal buffering ratios

Minimum requirements: Java 1.7+

Operating system: Win2000,WinXP,Win7 x32,Win7 x64,Windows 8,WinServer,WinVista,WinVista x64,Unix,Linux,Mac OS X,Java

Program URL: http://mindprod.com/applet/fileio.html

File I O Amanuensis screenshot

...

Special permissions

You may include FILEIO on any CD compilation. You may not sell FILEIO. It is free.

EULA

This program is for non-military use only. For details on what that licencing restriction means and why I restricted this software that way, see http://mindprod.com/contact/nonmil.html If you incorporate any of my code in your programs, they too must be marked for non-military use only. However it is not your responsibility to enforce that restriction.

Read more