xmodem - quick and dirty XMODEM client for Java
(c) 2009 Jason Frame (firstname.lastname@example.org)
Released under The MIT License.
Everything You Need To Know
XMODEM is a prehistoric protocol that was used to send files over modem links. As we discovered today, it's also used by some (otherwise cutting-edge) RFID readers.
Import the shizzle (there are only two classes,
Create an instance thusly:
Client c = new Client(myInputStream, myOutputStream);
If you're using a non-standard padding character (default is
0x1A), you may pass it as a third paramater:
Client c = new Client(myInputStream, myOutputStream, 0x0);
Reading your file is as simple as:
byte myFile = c.read();
Send to email@example.com please.