next up previous contents
Next: Organizing the Applet: Panel Up: Summer 2004 Final Report Previous: ShowCodesApplet   Contents

Encoding Webpages

Before I could write an applet that demonstrated how webpages could be encoded, I first had to convert the webpage data into the data types that the code classes would take. Html documents can be converted into a series of bytes using methods from the Byte class in java.util. I wrote one class to convert Bytes to $ \mathbb{F}_{2}$ elements. In this class I do not throw errors if the bytes do not contain 1s and 0s. Because these bytes will only becoming from the html documents I download in the encoding applet, I again made the assumption that I would not really need to check for those sorts of errors. Below is the class I used to convert Bytes to $ \mathbb{F}_{2}$ elements and vice versa. ByteToF2ElemToByte.java

Subsections

Frederick Leitner 2004-09-01