File:  [Public] / libwww / Library / src / HTGuess.html
Revision 2.15: download - view: text, annotated - select for diffs
Fri Apr 12 17:47:10 1996 UTC (28 years, 1 month ago) by frystyk
Branches: MAIN
CVS tags: Release-5-0, Release-4-1b5, Release-4-1b4, Release-4-1b3, Release-4-1b1, HEAD
new transport and Content Coding support

<HTML>
<HEAD>
<TITLE>W3C Reference Library libwww CONTENT TYPE GUESSING STREAM</TITLE>
<!-- Changed by: Henrik Frystyk Nielsen, 23-Mar-1996 -->
</HEAD>
<BODY>

<H1>Content-Type Guesser</H1>

<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>

This interface provides functionality for guessing unknown media types
from magic words. The stream is a one that reads first a chunk of
stuff, tries to figure out the format, and calls
<CODE>HTStreamStack()</CODE>. This is a kind of lazy-evaluation of
<CODE>HTStreamStack()</CODE>. <P>

This could be extended arbitrarily to recognize all the possible
file formats in the world, if someone only had time to do it. <P>

This module is implemented by <A HREF="HTGuess.c">HTGuess.c</A>, and
it is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
Reference Library</A>.

<PRE>
#ifndef HTGUESS_H
#define HTGUESS_H

#include "HTStream.h"
#include "HTFormat.h"

extern HTConverter HTGuess_new;

#endif	/* !HTGUESS_H */
</PRE>

<HR>
<ADDRESS>
@(#) $Id: HTGuess.html,v 2.15 1996/04/12 17:47:10 frystyk Exp $
</ADDRESS>
</BODY>
</HTML>

Webmaster