[jboss-svn-commits] JBL Code SVN: r20105 - labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed May 21 12:10:32 EDT 2008


Author: mingjin
Date: 2008-05-21 12:10:32 -0400 (Wed, 21 May 2008)
New Revision: 20105

Modified:
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/DroolsObjectInputStream.java
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/DroolsObjectOutputStream.java
Log:
Removed inappropreate JavaDoc's

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/DroolsObjectInputStream.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/DroolsObjectInputStream.java	2008-05-21 14:09:28 UTC (rev 20104)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/DroolsObjectInputStream.java	2008-05-21 16:10:32 UTC (rev 20105)
@@ -434,12 +434,6 @@
         return exception;
     }
 
-    /**
-     * Using the ClassLoader from the top of the stack to load the class specified by the given class name.
-     * @param className
-     * @return
-     * @throws ClassNotFoundException
-     */
     protected Class resolveClass(String className) throws ClassNotFoundException{
         try {
             Class clazz = primClasses.get( className );
@@ -459,524 +453,86 @@
     /*=================================================================================
     ObjectInput implementations
     =================================================================================*/
-    /**
-     * Reads a byte of data. This method will block if no input is
-     * available.
-     * @return 	the byte read, or -1 if the end of the
-     *		stream is reached.
-     * @exception IOException If an I/O error has occurred.
-     */
     public int read() throws IOException {
         return dataInput.read();
     }
 
-    /**
-     * Reads into an array of bytes.  This method will
-     * block until some input is available.
-     * @param b	the buffer into which the data is read
-     * @return  the actual number of bytes read, -1 is
-     * 		returned when the end of the stream is reached.
-     * @exception IOException If an I/O error has occurred.
-     */
     public int read(byte b[]) throws IOException {
         return dataInput.read(b);
     }
 
-    /**
-     * Reads into an array of bytes.  This method will
-     * block until some input is available.
-     * @param b	the buffer into which the data is read
-     * @param off the start offset of the data
-     * @param len the maximum number of bytes read
-     * @return  the actual number of bytes read, -1 is
-     * 		returned when the end of the stream is reached.
-     * @exception IOException If an I/O error has occurred.
-     */
     public int read(byte b[], int off, int len) throws IOException {
         return dataInput.read(b, off, len);
     }
 
-    /**
-     * Skips n bytes of input.
-     * @param n the number of bytes to be skipped
-     * @return	the actual number of bytes skipped.
-     * @exception IOException If an I/O error has occurred.
-     */
     public long skip(long n) throws IOException {
         return dataInput.skip(n);
     }
 
-    /**
-     * Returns the number of bytes that can be read
-     * without blocking.
-     * @return the number of available bytes.
-     * @exception IOException If an I/O error has occurred.
-     */
     public int available() throws IOException {
         return dataInput.available();
     }
 
-    /**
-     * Closes the input stream. Must be called
-     * to release any resources associated with
-     * the stream.
-     * @exception IOException If an I/O error has occurred.
-     */
     public void close() throws IOException {
         dataInput.close();
     }
 
-    /**
-     * Reads some bytes from an input
-     * stream and stores them into the buffer
-     * array <code>b</code>. The number of bytes
-     * read is equal
-     * to the length of <code>b</code>.
-     * <p>
-     * This method blocks until one of the
-     * following conditions occurs:<p>
-     * <ul>
-     * <li><code>b.length</code>
-     * bytes of input data are available, in which
-     * case a normal return is made.
-     *
-     * <li>End of
-     * file is detected, in which case an <code>EOFException</code>
-     * is thrown.
-     *
-     * <li>An I/O error occurs, in
-     * which case an <code>IOException</code> other
-     * than <code>EOFException</code> is thrown.
-     * </ul>
-     * <p>
-     * If <code>b</code> is <code>null</code>,
-     * a <code>NullPointerException</code> is thrown.
-     * If <code>b.length</code> is zero, then
-     * no bytes are read. Otherwise, the first
-     * byte read is stored into element <code>b[0]</code>,
-     * the next one into <code>b[1]</code>, and
-     * so on.
-     * If an exception is thrown from
-     * this method, then it may be that some but
-     * not all bytes of <code>b</code> have been
-     * updated with data from the input stream.
-     *
-     * @param     b   the buffer into which the data is read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public void readFully(byte b[]) throws IOException {
         dataInput.readFully(b);
     }
 
-    /**
-     *
-     * Reads <code>len</code>
-     * bytes from
-     * an input stream.
-     * <p>
-     * This method
-     * blocks until one of the following conditions
-     * occurs:<p>
-     * <ul>
-     * <li><code>len</code> bytes
-     * of input data are available, in which case
-     * a normal return is made.
-     *
-     * <li>End of file
-     * is detected, in which case an <code>EOFException</code>
-     * is thrown.
-     *
-     * <li>An I/O error occurs, in
-     * which case an <code>IOException</code> other
-     * than <code>EOFException</code> is thrown.
-     * </ul>
-     * <p>
-     * If <code>b</code> is <code>null</code>,
-     * a <code>NullPointerException</code> is thrown.
-     * If <code>off</code> is negative, or <code>len</code>
-     * is negative, or <code>off+len</code> is
-     * greater than the length of the array <code>b</code>,
-     * then an <code>IndexOutOfBoundsException</code>
-     * is thrown.
-     * If <code>len</code> is zero,
-     * then no bytes are read. Otherwise, the first
-     * byte read is stored into element <code>b[off]</code>,
-     * the next one into <code>b[off+1]</code>,
-     * and so on. The number of bytes read is,
-     * at most, equal to <code>len</code>.
-     *
-     * @param     b   the buffer into which the data is read.
-     * @param off  an int specifying the offset into the data.
-     * @param len  an int specifying the number of bytes to read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public void readFully(byte b[], int off, int len) throws IOException {
         dataInput.readFully(b, off, len);
     }
 
-    /**
-     * Makes an attempt to skip over
-     * <code>n</code> bytes
-     * of data from the input
-     * stream, discarding the skipped bytes. However,
-     * it may skip
-     * over some smaller number of
-     * bytes, possibly zero. This may result from
-     * any of a
-     * number of conditions; reaching
-     * end of file before <code>n</code> bytes
-     * have been skipped is
-     * only one possibility.
-     * This method never throws an <code>EOFException</code>.
-     * The actual
-     * number of bytes skipped is returned.
-     *
-     * @param      n   the number of bytes to be skipped.
-     * @return     the number of bytes actually skipped.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public int skipBytes(int n) throws IOException {
         return dataInput.skipBytes(n);
     }
 
-    /**
-     * Reads one input byte and returns
-     * <code>true</code> if that byte is nonzero,
-     * <code>false</code> if that byte is zero.
-     * This method is suitable for reading
-     * the byte written by the <code>writeBoolean</code>
-     * method of interface <code>DataOutput</code>.
-     *
-     * @return     the <code>boolean</code> value read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public boolean readBoolean() throws IOException {
         return dataInput.readBoolean();
     }
 
-    /**
-     * Reads and returns one input byte.
-     * The byte is treated as a signed value in
-     * the range <code>-128</code> through <code>127</code>,
-     * inclusive.
-     * This method is suitable for
-     * reading the byte written by the <code>writeByte</code>
-     * method of interface <code>DataOutput</code>.
-     *
-     * @return     the 8-bit value read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public byte readByte() throws IOException {
         return dataInput.readByte();
     }
 
-    /**
-     * Reads one input byte, zero-extends
-     * it to type <code>int</code>, and returns
-     * the result, which is therefore in the range
-     * <code>0</code>
-     * through <code>255</code>.
-     * This method is suitable for reading
-     * the byte written by the <code>writeByte</code>
-     * method of interface <code>DataOutput</code>
-     * if the argument to <code>writeByte</code>
-     * was intended to be a value in the range
-     * <code>0</code> through <code>255</code>.
-     *
-     * @return     the unsigned 8-bit value read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public int readUnsignedByte() throws IOException {
         return dataInput.readUnsignedByte();
     }
 
-    /**
-     * Reads two input bytes and returns
-     * a <code>short</code> value. Let <code>a</code>
-     * be the first byte read and <code>b</code>
-     * be the second byte. The value
-     * returned
-     * is:
-     * <p><pre><code>(short)((a &lt;&lt; 8) | (b &amp; 0xff))
-     * </code></pre>
-     * This method
-     * is suitable for reading the bytes written
-     * by the <code>writeShort</code> method of
-     * interface <code>DataOutput</code>.
-     *
-     * @return     the 16-bit value read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public short readShort() throws IOException {
         return dataInput.readShort();
     }
 
-    /**
-     * Reads two input bytes and returns
-     * an <code>int</code> value in the range <code>0</code>
-     * through <code>65535</code>. Let <code>a</code>
-     * be the first byte read and
-     * <code>b</code>
-     * be the second byte. The value returned is:
-     * <p><pre><code>(((a &amp; 0xff) &lt;&lt; 8) | (b &amp; 0xff))
-     * </code></pre>
-     * This method is suitable for reading the bytes
-     * written by the <code>writeShort</code> method
-     * of interface <code>DataOutput</code>  if
-     * the argument to <code>writeShort</code>
-     * was intended to be a value in the range
-     * <code>0</code> through <code>65535</code>.
-     *
-     * @return     the unsigned 16-bit value read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public int readUnsignedShort() throws IOException {
         return dataInput.readUnsignedShort();
     }
 
-    /**
-     * Reads an input <code>char</code> and returns the <code>char</code> value.
-     * A Unicode <code>char</code> is made up of two bytes.
-     * Let <code>a</code>
-     * be the first byte read and <code>b</code>
-     * be the second byte. The value
-     * returned is:
-     * <p><pre><code>(char)((a &lt;&lt; 8) | (b &amp; 0xff))
-     * </code></pre>
-     * This method
-     * is suitable for reading bytes written by
-     * the <code>writeChar</code> method of interface
-     * <code>DataOutput</code>.
-     *
-     * @return     the Unicode <code>char</code> read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public char readChar() throws IOException {
         return dataInput.readChar();
     }
 
-    /**
-     * Reads four input bytes and returns an
-     * <code>int</code> value. Let <code>a</code>
-     * be the first byte read, <code>b</code> be
-     * the second byte, <code>c</code> be the third
-     * byte,
-     * and <code>d</code> be the fourth
-     * byte. The value returned is:
-     * <p><pre>
-     * <code>
-     * (((a &amp; 0xff) &lt;&lt; 24) | ((b &amp; 0xff) &lt;&lt; 16) |
-     * &#32;((c &amp; 0xff) &lt;&lt; 8) | (d &amp; 0xff))
-     * </code></pre>
-     * This method is suitable
-     * for reading bytes written by the <code>writeInt</code>
-     * method of interface <code>DataOutput</code>.
-     *
-     * @return     the <code>int</code> value read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public int readInt() throws IOException {
         return dataInput.readInt();
     }
 
-    /**
-     * Reads eight input bytes and returns
-     * a <code>long</code> value. Let <code>a</code>
-     * be the first byte read, <code>b</code> be
-     * the second byte, <code>c</code> be the third
-     * byte, <code>d</code>
-     * be the fourth byte,
-     * <code>e</code> be the fifth byte, <code>f</code>
-     * be the sixth byte, <code>g</code> be the
-     * seventh byte,
-     * and <code>h</code> be the
-     * eighth byte. The value returned is:
-     * <p><pre> <code>
-     * (((long)(a &amp; 0xff) &lt;&lt; 56) |
-     *  ((long)(b &amp; 0xff) &lt;&lt; 48) |
-     *  ((long)(c &amp; 0xff) &lt;&lt; 40) |
-     *  ((long)(d &amp; 0xff) &lt;&lt; 32) |
-     *  ((long)(e &amp; 0xff) &lt;&lt; 24) |
-     *  ((long)(f &amp; 0xff) &lt;&lt; 16) |
-     *  ((long)(g &amp; 0xff) &lt;&lt;  8) |
-     *  ((long)(h &amp; 0xff)))
-     * </code></pre>
-     * <p>
-     * This method is suitable
-     * for reading bytes written by the <code>writeLong</code>
-     * method of interface <code>DataOutput</code>.
-     *
-     * @return     the <code>long</code> value read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public long readLong() throws IOException {
         return dataInput.readLong();
     }
 
-    /**
-     * Reads four input bytes and returns
-     * a <code>float</code> value. It does this
-     * by first constructing an <code>int</code>
-     * value in exactly the manner
-     * of the <code>readInt</code>
-     * method, then converting this <code>int</code>
-     * value to a <code>float</code> in
-     * exactly the manner of the method <code>Float.intBitsToFloat</code>.
-     * This method is suitable for reading
-     * bytes written by the <code>writeFloat</code>
-     * method of interface <code>DataOutput</code>.
-     *
-     * @return     the <code>float</code> value read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public float readFloat() throws IOException {
         return dataInput.readFloat();
     }
 
-    /**
-     * Reads eight input bytes and returns
-     * a <code>double</code> value. It does this
-     * by first constructing a <code>long</code>
-     * value in exactly the manner
-     * of the <code>readlong</code>
-     * method, then converting this <code>long</code>
-     * value to a <code>double</code> in exactly
-     * the manner of the method <code>Double.longBitsToDouble</code>.
-     * This method is suitable for reading
-     * bytes written by the <code>writeDouble</code>
-     * method of interface <code>DataOutput</code>.
-     *
-     * @return     the <code>double</code> value read.
-     * @exception  IOException   if an I/O error occurs.
-     */
     public double readDouble() throws IOException {
         return dataInput.readDouble();
     }
 
-    /**
-     * Reads the next line of text from the input stream.
-     * It reads successive bytes, converting
-     * each byte separately into a character,
-     * until it encounters a line terminator or
-     * end of
-     * file; the characters read are then
-     * returned as a <code>String</code>. Note
-     * that because this
-     * method processes bytes,
-     * it does not support input of the full Unicode
-     * character set.
-     * <p>
-     * If end of file is encountered
-     * before even one byte can be read, then <code>null</code>
-     * is returned. Otherwise, each byte that is
-     * read is converted to type <code>char</code>
-     * by zero-extension. If the character <code>'\n'</code>
-     * is encountered, it is discarded and reading
-     * ceases. If the character <code>'\r'</code>
-     * is encountered, it is discarded and, if
-     * the following byte converts &#32;to the
-     * character <code>'\n'</code>, then that is
-     * discarded also; reading then ceases. If
-     * end of file is encountered before either
-     * of the characters <code>'\n'</code> and
-     * <code>'\r'</code> is encountered, reading
-     * ceases. Once reading has ceased, a <code>String</code>
-     * is returned that contains all the characters
-     * read and not discarded, taken in order.
-     * Note that every character in this string
-     * will have a value less than <code>&#92;u0100</code>,
-     * that is, <code>(char)256</code>.
-     *
-     * @return the next line of text from the input stream,
-     *         or <CODE>null</CODE> if the end of file is
-     *         encountered before a byte can be read.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public String readLine() throws IOException {
         return dataInput.readLine();
     }
 
-    /**
-     * Reads in a string that has been encoded using a
-     * <a href="#modified-utf-8">modified UTF-8</a>
-     * format.
-     * The general contract of <code>readUTF</code>
-     * is that it reads a representation of a Unicode
-     * character string encoded in modified
-     * UTF-8 format; this string of characters
-     * is then returned as a <code>String</code>.
-     * <p>
-     * First, two bytes are read and used to
-     * construct an unsigned 16-bit integer in
-     * exactly the manner of the <code>readUnsignedShort</code>
-     * method . This integer value is called the
-     * <i>UTF length</i> and specifies the number
-     * of additional bytes to be read. These bytes
-     * are then converted to characters by considering
-     * them in groups. The length of each group
-     * is computed from the value of the first
-     * byte of the group. The byte following a
-     * group, if any, is the first byte of the
-     * next group.
-     * <p>
-     * If the first byte of a group
-     * matches the bit pattern <code>0xxxxxxx</code>
-     * (where <code>x</code> means "may be <code>0</code>
-     * or <code>1</code>"), then the group consists
-     * of just that byte. The byte is zero-extended
-     * to form a character.
-     * <p>
-     * If the first byte
-     * of a group matches the bit pattern <code>110xxxxx</code>,
-     * then the group consists of that byte <code>a</code>
-     * and a second byte <code>b</code>. If there
-     * is no byte <code>b</code> (because byte
-     * <code>a</code> was the last of the bytes
-     * to be read), or if byte <code>b</code> does
-     * not match the bit pattern <code>10xxxxxx</code>,
-     * then a <code>UTFDataFormatException</code>
-     * is thrown. Otherwise, the group is converted
-     * to the character:<p>
-     * <pre><code>(char)(((a&amp; 0x1F) &lt;&lt; 6) | (b &amp; 0x3F))
-     * </code></pre>
-     * If the first byte of a group
-     * matches the bit pattern <code>1110xxxx</code>,
-     * then the group consists of that byte <code>a</code>
-     * and two more bytes <code>b</code> and <code>c</code>.
-     * If there is no byte <code>c</code> (because
-     * byte <code>a</code> was one of the last
-     * two of the bytes to be read), or either
-     * byte <code>b</code> or byte <code>c</code>
-     * does not match the bit pattern <code>10xxxxxx</code>,
-     * then a <code>UTFDataFormatException</code>
-     * is thrown. Otherwise, the group is converted
-     * to the character:<p>
-     * <pre><code>
-     * (char)(((a &amp; 0x0F) &lt;&lt; 12) | ((b &amp; 0x3F) &lt;&lt; 6) | (c &amp; 0x3F))
-     * </code></pre>
-     * If the first byte of a group matches the
-     * pattern <code>1111xxxx</code> or the pattern
-     * <code>10xxxxxx</code>, then a <code>UTFDataFormatException</code>
-     * is thrown.
-     * <p>
-     * If end of file is encountered
-     * at any time during this entire process,
-     * then an <code>EOFException</code> is thrown.
-     * <p>
-     * After every group has been converted to
-     * a character by this process, the characters
-     * are gathered, in the same order in which
-     * their corresponding groups were read from
-     * the input stream, to form a <code>String</code>,
-     * which is returned.
-     * <p>
-     * The <code>writeUTF</code>
-     * method of interface <code>DataOutput</code>
-     * may be used to write data that is suitable
-     * for reading by this method.
-     * @return     a Unicode string.
-     * @exception  IOException             if an I/O error occurs.
-     */
     public String readUTF() throws IOException {
         return dataInput.readUTF();
     }

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/DroolsObjectOutputStream.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/DroolsObjectOutputStream.java	2008-05-21 14:09:28 UTC (rev 20104)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/DroolsObjectOutputStream.java	2008-05-21 16:10:32 UTC (rev 20105)
@@ -154,13 +154,6 @@
     /*==========================================================================
       Implementations of ObjectOutput
     ==========================================================================*/
-    /**
-     * Write an object to the underlying storage or stream.  The object was written
-     * in Drools specific format.
-     *
-     * @param object the object to be written
-     * @exception IOException Any of the usual Input/Output related exceptions.
-     */
     public void writeObject(Object object) throws IOException {
         if (object == null) {
             dataOutput.writeByte(RT_NULL);
@@ -246,330 +239,66 @@
         dataOutput.flush();
     }
 
-    /**
-     * Writes a byte. This method will block until the byte is actually
-     * written.
-     * @param b	the byte
-     * @exception IOException If an I/O error has occurred.
-     */
     public void write(int b) throws IOException {
         dataOutput.write(b);
     }
 
-    /**
-     * Writes an array of bytes. This method will block until the bytes
-     * are actually written.
-     * @param b	the data to be written
-     * @exception IOException If an I/O error has occurred.
-     */
     public void write(byte b[]) throws IOException {
         dataOutput.write(b);
     }
 
-    /**
-     * Writes a sub array of bytes.
-     * @param b	the data to be written
-     * @param off	the start offset in the data
-     * @param len	the number of bytes that are written
-     * @exception IOException If an I/O error has occurred.
-     */
     public void write(byte b[], int off, int len) throws IOException {
         dataOutput.write(b, off, len);
     }
 
-    /**
-     * Flushes the stream. This will write any buffered
-     * output bytes.
-     * @exception IOException If an I/O error has occurred.
-     */
     public void flush() throws IOException {
         dataOutput.flush();
     }
 
-    /**
-     * Closes the stream. This method must be called
-     * to release any resources associated with the
-     * stream.
-     * @exception IOException If an I/O error has occurred.
-     */
     public void close() throws IOException {
        dataOutput.close();
     }
 
-    /**
-     * Writes a <code>boolean</code> value to this output stream.
-     * If the argument <code>v</code>
-     * is <code>true</code>, the value <code>(byte)1</code>
-     * is written; if <code>v</code> is <code>false</code>,
-     * the  value <code>(byte)0</code> is written.
-     * The byte written by this method may
-     * be read by the <code>readBoolean</code>
-     * method of interface <code>DataInput</code>,
-     * which will then return a <code>boolean</code>
-     * equal to <code>v</code>.
-     *
-     * @param      v   the boolean to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeBoolean(boolean v) throws IOException {
         dataOutput.writeBoolean(v);
     }
 
-    /**
-     * Writes to the output stream the eight low-
-     * order bits of the argument <code>v</code>.
-     * The 24 high-order bits of <code>v</code>
-     * are ignored. (This means  that <code>writeByte</code>
-     * does exactly the same thing as <code>write</code>
-     * for an integer argument.) The byte written
-     * by this method may be read by the <code>readByte</code>
-     * method of interface <code>DataInput</code>,
-     * which will then return a <code>byte</code>
-     * equal to <code>(byte)v</code>.
-     *
-     * @param      v   the byte value to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeByte(int v) throws IOException {
         dataOutput.writeByte(v);
     }
 
-    /**
-     * Writes two bytes to the output
-     * stream to represent the value of the argument.
-     * The byte values to be written, in the  order
-     * shown, are: <p>
-     * <pre><code>
-     * (byte)(0xff &amp; (v &gt;&gt; 8))
-     * (byte)(0xff &amp; v)
-     * </code> </pre> <p>
-     * The bytes written by this method may be
-     * read by the <code>readShort</code> method
-     * of interface <code>DataInput</code> , which
-     * will then return a <code>short</code> equal
-     * to <code>(short)v</code>.
-     *
-     * @param      v   the <code>short</code> value to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeShort(int v) throws IOException {
         dataOutput.writeShort(v);
     }
 
-    /**
-     * Writes a <code>char</code> value, which
-     * is comprised of two bytes, to the
-     * output stream.
-     * The byte values to be written, in the  order
-     * shown, are:
-     * <p><pre><code>
-     * (byte)(0xff &amp; (v &gt;&gt; 8))
-     * (byte)(0xff &amp; v)
-     * </code></pre><p>
-     * The bytes written by this method may be
-     * read by the <code>readChar</code> method
-     * of interface <code>DataInput</code> , which
-     * will then return a <code>char</code> equal
-     * to <code>(char)v</code>.
-     *
-     * @param      v   the <code>char</code> value to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeChar(int v) throws IOException {
         dataOutput.writeChar(v);
     }
 
-    /**
-     * Writes an <code>int</code> value, which is
-     * comprised of four bytes, to the output stream.
-     * The byte values to be written, in the  order
-     * shown, are:
-     * <p><pre><code>
-     * (byte)(0xff &amp; (v &gt;&gt; 24))
-     * (byte)(0xff &amp; (v &gt;&gt; 16))
-     * (byte)(0xff &amp; (v &gt;&gt; &#32; &#32;8))
-     * (byte)(0xff &amp; v)
-     * </code></pre><p>
-     * The bytes written by this method may be read
-     * by the <code>readInt</code> method of interface
-     * <code>DataInput</code> , which will then
-     * return an <code>int</code> equal to <code>v</code>.
-     *
-     * @param      v   the <code>int</code> value to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeInt(int v) throws IOException {
         dataOutput.writeInt(v);
     }
 
-    /**
-     * Writes a <code>long</code> value, which is
-     * comprised of eight bytes, to the output stream.
-     * The byte values to be written, in the  order
-     * shown, are:
-     * <p><pre><code>
-     * (byte)(0xff &amp; (v &gt;&gt; 56))
-     * (byte)(0xff &amp; (v &gt;&gt; 48))
-     * (byte)(0xff &amp; (v &gt;&gt; 40))
-     * (byte)(0xff &amp; (v &gt;&gt; 32))
-     * (byte)(0xff &amp; (v &gt;&gt; 24))
-     * (byte)(0xff &amp; (v &gt;&gt; 16))
-     * (byte)(0xff &amp; (v &gt;&gt;  8))
-     * (byte)(0xff &amp; v)
-     * </code></pre><p>
-     * The bytes written by this method may be
-     * read by the <code>readLong</code> method
-     * of interface <code>DataInput</code> , which
-     * will then return a <code>long</code> equal
-     * to <code>v</code>.
-     *
-     * @param      v   the <code>long</code> value to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeLong(long v) throws IOException {
         dataOutput.writeLong(v);
     }
 
-    /**
-     * Writes a <code>float</code> value,
-     * which is comprised of four bytes, to the output stream.
-     * It does this as if it first converts this
-     * <code>float</code> value to an <code>int</code>
-     * in exactly the manner of the <code>Float.floatToIntBits</code>
-     * method  and then writes the <code>int</code>
-     * value in exactly the manner of the  <code>writeInt</code>
-     * method.  The bytes written by this method
-     * may be read by the <code>readFloat</code>
-     * method of interface <code>DataInput</code>,
-     * which will then return a <code>float</code>
-     * equal to <code>v</code>.
-     *
-     * @param      v   the <code>float</code> value to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeFloat(float v) throws IOException {
         dataOutput.writeFloat(v);
     }
 
-    /**
-     * Writes a <code>double</code> value,
-     * which is comprised of eight bytes, to the output stream.
-     * It does this as if it first converts this
-     * <code>double</code> value to a <code>long</code>
-     * in exactly the manner of the <code>Double.doubleToLongBits</code>
-     * method  and then writes the <code>long</code>
-     * value in exactly the manner of the  <code>writeLong</code>
-     * method. The bytes written by this method
-     * may be read by the <code>readDouble</code>
-     * method of interface <code>DataInput</code>,
-     * which will then return a <code>double</code>
-     * equal to <code>v</code>.
-     *
-     * @param      v   the <code>double</code> value to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeDouble(double v) throws IOException {
         dataOutput.writeDouble(v);
     }
 
-    /**
-     * Writes a string to the output stream.
-     * For every character in the string
-     * <code>s</code>,  taken in order, one byte
-     * is written to the output stream.  If
-     * <code>s</code> is <code>null</code>, a <code>NullPointerException</code>
-     * is thrown.<p>  If <code>s.length</code>
-     * is zero, then no bytes are written. Otherwise,
-     * the character <code>s[0]</code> is written
-     * first, then <code>s[1]</code>, and so on;
-     * the last character written is <code>s[s.length-1]</code>.
-     * For each character, one byte is written,
-     * the low-order byte, in exactly the manner
-     * of the <code>writeByte</code> method . The
-     * high-order eight bits of each character
-     * in the string are ignored.
-     *
-     * @param      s   the string of bytes to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeBytes(String s) throws IOException {
         dataOutput.writeBytes(s);
     }
 
-    /**
-     * Writes every character in the string <code>s</code>,
-     * to the output stream, in order,
-     * two bytes per character. If <code>s</code>
-     * is <code>null</code>, a <code>NullPointerException</code>
-     * is thrown.  If <code>s.length</code>
-     * is zero, then no characters are written.
-     * Otherwise, the character <code>s[0]</code>
-     * is written first, then <code>s[1]</code>,
-     * and so on; the last character written is
-     * <code>s[s.length-1]</code>. For each character,
-     * two bytes are actually written, high-order
-     * byte first, in exactly the manner of the
-     * <code>writeChar</code> method.
-     *
-     * @param      s   the string value to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeChars(String s) throws IOException {
         dataOutput.writeChars(s);
     }
 
-    /**
-     * Writes two bytes of length information
-     * to the output stream, followed
-     * by the
-     * <a href="DataInput.html#modified-utf-8">modified UTF-8</a>
-     * representation
-     * of  every character in the string <code>s</code>.
-     * If <code>s</code> is <code>null</code>,
-     * a <code>NullPointerException</code> is thrown.
-     * Each character in the string <code>s</code>
-     * is converted to a group of one, two, or
-     * three bytes, depending on the value of the
-     * character.<p>
-     * If a character <code>c</code>
-     * is in the range <code>&#92;u0001</code> through
-     * <code>&#92;u007f</code>, it is represented
-     * by one byte:<p>
-     * <pre>(byte)c </pre>  <p>
-     * If a character <code>c</code> is <code>&#92;u0000</code>
-     * or is in the range <code>&#92;u0080</code>
-     * through <code>&#92;u07ff</code>, then it is
-     * represented by two bytes, to be written
-     * in the order shown:<p> <pre><code>
-     * (byte)(0xc0 | (0x1f &amp; (c &gt;&gt; 6)))
-     * (byte)(0x80 | (0x3f &amp; c))
-     *  </code></pre>  <p> If a character
-     * <code>c</code> is in the range <code>&#92;u0800</code>
-     * through <code>uffff</code>, then it is
-     * represented by three bytes, to be written
-     * in the order shown:<p> <pre><code>
-     * (byte)(0xe0 | (0x0f &amp; (c &gt;&gt; 12)))
-     * (byte)(0x80 | (0x3f &amp; (c &gt;&gt;  6)))
-     * (byte)(0x80 | (0x3f &amp; c))
-     *  </code></pre>  <p> First,
-     * the total number of bytes needed to represent
-     * all the characters of <code>s</code> is
-     * calculated. If this number is larger than
-     * <code>65535</code>, then a <code>UTFDataFormatException</code>
-     * is thrown. Otherwise, this length is written
-     * to the output stream in exactly the manner
-     * of the <code>writeShort</code> method;
-     * after this, the one-, two-, or three-byte
-     * representation of each character in the
-     * string <code>s</code> is written.<p>  The
-     * bytes written by this method may be read
-     * by the <code>readUTF</code> method of interface
-     * <code>DataInput</code> , which will then
-     * return a <code>String</code> equal to <code>s</code>.
-     *
-     * @param      str   the string value to be written.
-     * @exception  IOException  if an I/O error occurs.
-     */
     public void writeUTF(String str) throws IOException {
         dataOutput.writeUTF(str);
     }




More information about the jboss-svn-commits mailing list