openamf/src/java/org/openamf/io AMFDeserializer.java,1.16,1.17

[email protected]
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/io
In directory sc8-pr-cvs1:/tmp/cvs-serv1259/src/java/org/openamf/io

Modified Files:
	AMFDeserializer.java 
Log Message:
clean up

Index: AMFDeserializer.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/io/AMFDeserializer.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** AMFDeserializer.java	24 May 2003 21:59:39 -0000	1.16
--- AMFDeserializer.java	31 May 2003 08:03:38 -0000	1.17
***************
*** 92,98 ****
  			//clear storedObjects
  			storedObjects = new ArrayList();
! 			String method = readString();
  			// The target that the client understands
! 			String target = readString();
  			// Get the length of the body element
  			long length = inputStream.readInt();
--- 92,98 ----
  			//clear storedObjects
  			storedObjects = new ArrayList();
! 			String method = inputStream.readUTF();
  			// The target that the client understands
! 			String target = inputStream.readUTF();
  			// Get the length of the body element
  			long length = inputStream.readInt();
***************
*** 191,198 ****
  	}
  
- 	protected double readNumber() throws IOException {
- 		return inputStream.readDouble();
- 	}
- 
  	// Read the next byte and return its boolean value
  	protected boolean readBoolean() throws IOException {
--- 191,194 ----
***************
*** 206,213 ****
  	}
  
- 	protected String readString() throws IOException {
- 		return inputStream.readUTF();
- 	}
- 
  	protected Date readDate() throws IOException {
  		double ms = inputStream.readDouble(); // Date in millis from 01/01/1970
--- 202,205 ----
***************
*** 256,260 ****
  		switch (type) {
  			case AMFBody.DATA_TYPE_NUMBER :
! 				data = new Double(readNumber());
  				break;
  			case AMFBody.DATA_TYPE_BOOLEAN :
--- 248,252 ----
  		switch (type) {
  			case AMFBody.DATA_TYPE_NUMBER :
! 				data = new Double(inputStream.readDouble());
  				break;
  			case AMFBody.DATA_TYPE_BOOLEAN :
***************
*** 262,266 ****
  				break;
  			case AMFBody.DATA_TYPE_STRING :
! 				data = readString();
  				break;
  			case AMFBody.DATA_TYPE_OBJECT :
--- 254,258 ----
  				break;
  			case AMFBody.DATA_TYPE_STRING :
! 				data = inputStream.readUTF();
  				break;
  			case AMFBody.DATA_TYPE_OBJECT :




-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.