Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser
In directory sc8-pr-cvs1:/tmp/cvs-serv32344
Modified Files:
Parser.java
Log Message:
Fix broken serializability.
Index: Parser.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/Parser.java,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** Parser.java 28 Sep 2003 19:30:03 -0000 1.63
--- Parser.java 29 Sep 2003 00:00:38 -0000 1.64
***************
*** 189,193 ****
* The html lexer associated with this parser.
*/
! protected transient Lexer mLexer;
/**
--- 189,193 ----
* The html lexer associated with this parser.
*/
! protected Lexer mLexer;
/**
***************
*** 369,400 ****
{
this (connection, stdout);
- }
-
- //
- // Serialization support
- //
-
- private void writeObject (ObjectOutputStream out)
- throws
- IOException
- {
- out.defaultWriteObject ();
- }
-
- private void readObject (ObjectInputStream in)
- throws
- IOException,
- ClassNotFoundException
- {
- in.defaultReadObject ();
- try
- {
- // reopen the connection and create a lexer which are transient fields
- setURL (getURL ());
- }
- catch (ParserException hpe)
- {
- throw new IOException (hpe.toString ());
- }
}
--- 369,372 ----
|