CMP File I/O Amanuensis  CMP File I/O Amanuensis

go to home page Applets full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
This Applet will help you write Java code. Instead of memorising the dozens of I/O classes and methods, just select what you want to do, and let the amanuensis generate the code, the paste it into your source. Please pass on bugs and suggestions for improvement. The code is messy, but this just reflects the chaos in Sun’s design of java.io. It is a bit like doing jig-saw puzzles trying to find ways to fit the classes together. The asymmetry is astounding.

The 2007-08-05 version was a major rewrite. There are undoubtedly errors in the code it generates, though I can guarantee all code it generates will at least compile. It is a huge program with fiendishly baroque interactions. It is perhaps the most difficult to debug and proofread program I have ever written. Please report any errors in the code in generates or suggestions for improvement.

The File I/O Amanuensis does not yet give you any help with the Java 1.4+ javax.imageio.ImageIO class or the java.nio classes: Buffer, ByteBuffer, ByteOrder, CharBuffer, DoubleBuffer, FloatBuffer, IntBuffer, LongBuffer, MappedByteBuffer or ShortBuffer.

Nio is particularly useful when you have:

Binary is a compact, machine-friendly, human-unintelligible format. For human readable i/o, Java works with Strings of characters. You separately convert these to and from internal binary format e.g. int. See the conversion Amanuensis for how.

If, fileio, the above File I/O Amanuensis Java Applet (that can also be run as an application) does not work…

  1. This Java Applet (that can also be run as an application) needs Java 1.5 or later, best version 1.5.0_16 or later, version 1.6.0_10 recommended and a recent browser.
  2. You should see the Applet hybrid above looking much like the screenshot. If you don’t, the following should help you get it working:
  3. If you are using Microsoft Internet Explorer, try another browser. Seriously. Microsoft has taken great pains, over and over, to screw up Java and every other multi-platform standardisation.
  4. If you are using Internet Explorer 7 or 8, you must allow blocked content permission for Active X to run. This also gives permission to Java to run. Click the Information bar, and then click Allow blocked content. Unfortunately, this also allows dangerous ActiveX code to run. However, you must do this in order to get access to perfectly-safe Java Applets running in a sandbox. This is part of Microsoft’s war on Java. Don’t put up with it! Use a different browser.
  5. Especially if this Applet hybrid has worked before, try clearing the browser cache and rebooting.
  6. To ensure your Java is up to date, check with Wassup. First, download it and run it as an application independent of your browser, then run it online as an Applet to add the complication of your browser.
  7. If the above Applet hybrid does not work, check the Java console for error messages.
  8. If the above Applet hybrid does not work, you might have better luck with the downloadable version.
  9. If you still can’t get the program working click HELP for more detail.
  10. If you can’t get the above Applet hybrid working after trying the advice above and from the HELP button below, have bugs to report or ideas to improve the program or its documentation, please send me an email atemail Roedy Green.
Java powered   Get New Java  Get New Browser   Help
PackageVersionReleasedLicenceLanguageNotes 
fileio
File I/O Amanuensis
5.7 2008-04-02 free Java
summary / PAD description / screenshot for the current version of File I/O Amanuensis. Applet to show you how write Java I/O code to read and write files, URLs, HTTP CGI/GET/POST, sockets, StringReaders etc. You select what sort of i/o you need and it generates the Java source code.
download File I/O Amanuensis source and compiled class files to run on your own machine as an application or Applet. First install the most recent Java. To install, extract the zip download with WinZip, (or similar unzip utility) into any directory you please, often J:\ — ticking off the “user folder names” option. To run as an application,type:
java -jar J:\com\mindprod\fileio\fileio.jar
adjusting as necessary to account for where the jar file is.
download ASP PAD XML program description for the current version of File I/O Amanuensis.
File I/O Amanuensis is free. Full source included. You may even include the source code, modified or unmodified in commercial programs that you write and distribute. Non-military use only.
   
 
Conversion Amanuensis
Datagram
Files and directories
http
ImageIO
nio
other downloads
StreamTokenizer
StringTokenizer
UnifiedIO

CMP homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.62] Spread the Net
You are visitor number 103,438.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/applet/fileio.html J:\mindprod\applet\fileio.html