openamf/src/java/org/openamf/io AMFDeserializer.java,1.17,1.18 AMFSerializer.java,1.30,1.31

[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-serv24368/src/java/org/openamf/io

Modified Files:
	AMFDeserializer.java AMFSerializer.java 
Log Message:
cleaned up logging
now you can just watch at the INFO level, and see the info you need

Index: AMFDeserializer.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/io/AMFDeserializer.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** AMFDeserializer.java	31 May 2003 08:03:38 -0000	1.17
--- AMFDeserializer.java	5 Jul 2003 19:50:48 -0000	1.18
***************
*** 116,120 ****
  		// Grab the explicit type - somehow it works
  		String type = inputStream.readUTF();
! 		log.debug("Custom Class: " + type);
  		ASObject aso = new ASObject(type);
  		
--- 116,120 ----
  		// Grab the explicit type - somehow it works
  		String type = inputStream.readUTF();
! 		log.info("Reading Custom Class: " + type);
  		ASObject aso = new ASObject(type);
  		
***************
*** 133,137 ****
  		
  		// Init the array
! 		log.debug("reading object");
  
  		// Grab the key
--- 133,137 ----
  		
  		// Init the array
! 		log.info("reading object");
  
  		// Grab the key
***************
*** 168,172 ****
  		storeObject(array);
  
! 		log.debug("reading array");
  		// Grab the length of the array
  		long length = inputStream.readInt();
--- 168,172 ----
  		storeObject(array);
  
! 		log.info("Reading array");
  		// Grab the length of the array
  		long length = inputStream.readInt();

Index: AMFSerializer.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/io/AMFSerializer.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** AMFSerializer.java	24 May 2003 21:59:39 -0000	1.30
--- AMFSerializer.java	5 Jul 2003 19:50:48 -0000	1.31
***************
*** 26,32 ****
  import org.w3c.dom.Element;
  
- //TODO: use http://www.php.net/manual/en/function.pack.php to convert php
- // serialization to java
- 
  public class AMFSerializer {
  
--- 26,29 ----
***************
*** 44,47 ****
--- 41,46 ----
  	public void serializeMessage(AMFMessage message) throws IOException {
  		
+ 		log.info("Serializing Message, for more info turn on debug level");
+ 		
  		//version ?
  		outputStream.writeShort(0);
***************
*** 64,68 ****
  
  	protected void writeHeader(AMFHeader header) throws IOException {
- 		//TODO so far we aren't sending headers so this isn't tested
  		outputStream.writeUTF(header.getKey());
  		outputStream.writeBoolean(header.isRequired());
--- 63,66 ----
***************
*** 125,128 ****
--- 123,127 ----
  	protected void writeObject(Object object) throws IOException {
  
+ 		log.debug("Writting Object");
  		outputStream.writeByte(AMFBody.DATA_TYPE_OBJECT);
  		try {
***************
*** 218,222 ****
  		Element docElement = document.getDocumentElement();
  		String xmlData = XMLUtils.convertDOMToString(docElement);
! 		log.debug("xmlData: \n" + xmlData);
  		ByteArrayOutputStream baOutputStream = new ByteArrayOutputStream();
  		baOutputStream.write(xmlData.getBytes());
--- 217,221 ----
  		Element docElement = document.getDocumentElement();
  		String xmlData = XMLUtils.convertDOMToString(docElement);
! 		log.debug("Writting xmlData: \n" + xmlData);
  		ByteArrayOutputStream baOutputStream = new ByteArrayOutputStream();
  		baOutputStream.write(xmlData.getBytes());




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
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.