To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.admin.generalOpen lugnet.admin.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Administrative / General / 5428
5427  |  5429
Subject: 
Re: Pseudo-streaming live news (was: Re: Monitor Page)
Newsgroups: 
lugnet.admin.general
Date: 
Wed, 22 Mar 2000 20:13:43 GMT
Highlighted: 
(details)
Viewed: 
2348 times
  
In lugnet.admin.general, Jeremy H. Sproat writes:
In lugnet.admin.general, Jeremy H. Sproat writes:
For general review, the app:
http://www.io.com/~jsproat/lugnet/text_streaming_news.jar
and the source:
http://www.io.com/~jsproat/lugnet/text_streaming_news.zip
I just changed and re-uploaded these...

...And again.

Changes:

o  I've changed the way the Consumer talks to the Listener -- it's now
somewhat closer to the JDK 1.1.x event model, in that the Consumer has to
Listener.addConsumer() itself, and the Listener can fire news tidbits towards
more than one Consumer.

o  I got rid of the Morsel class in favor of using a Properties object to
represent the news tidbits.  This allows for an arbitrary set of headers, and
so it's up to the Consumer to filter out what it doesn't want.  The body of the
message is fetched using the "Body:" header; I'm not sure I'll keep it that
way since the body, by definition, is a non-header.  The key-value set still
looks like ( "Header:" => "Text text text" }.

o  The thread priority has been knocked down to Thread.MIN_PRIORITY.

Core classes (Listener, Consumer) should be compatabe with JDK 1.1.x, but I
haven't been able to test that yet.  If anyone can, that'd be great.  And as
always, LMKWYT!

Cheers,
- jsproat



Message has 3 Replies:
  Re: Pseudo-streaming live news (was: Re: Monitor Page)
 
(...) If you wanted to rename the "Body:" header to something other than "Body:" and still let clients of the code access aspects of an article object via the same single entry point, you could redefine the body's "header key" to be the null string (...) (25 years ago, 22-Mar-00, to lugnet.admin.general)
  Re: Pseudo-streaming live news (was: Re: Monitor Page)
 
(...) I guess I should state that I'm developing this with the 1.2 JDK. I have 1.1 lying around here somewhere, but I don't have it installed for compatability testing. Yet. Cheers, - jsproat (25 years ago, 22-Mar-00, to lugnet.admin.general)
  Re: Pseudo-streaming live news (was: Re: Monitor Page)
 
(...) Ditto. Changes: o Added a SkipFilter class. There is no support for it in the Listener class; I'm not sure if skip-filters shouldn't be a client-only thing. Anyway, see TextClient.java for an example of implementation. I referred to Todd's (...) (25 years ago, 23-Mar-00, to lugnet.admin.general)  

Message is in Reply To:
  Re: Pseudo-streaming live news (was: Re: Monitor Page)
 
(...) the escaped-period condition in the message body schema. Also, it now dumps 1024 bytes of the message body, instead of just some headers. Cheers, - jsproat (25 years ago, 21-Mar-00, to lugnet.admin.general)  

66 Messages in This Thread:























Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR