Annotation of libwww/Library/src/HTGuess.html, revision 2.19
2.1 luotonen 1: <HTML>
2: <HEAD>
2.16 frystyk 3: <!-- Changed by: Henrik Frystyk Nielsen, 23-Mar-1996 -->
2.17 frystyk 4: <TITLE>W3C Sample Code Library libwww Content-Type Guessing Stream</TITLE>
2.1 luotonen 5: </HEAD>
6: <BODY>
2.16 frystyk 7: <H1>
8: Content-Type Guessing Stream
9: </H1>
2.4 frystyk 10: <PRE>
11: /*
2.8 frystyk 12: ** (c) COPYRIGHT MIT 1995.
2.4 frystyk 13: ** Please first read the full copyright statement in the file COPYRIGH.
14: */
15: </PRE>
2.16 frystyk 16: <P>
17: This interface provides functionality for guessing unknown media types from
18: magic words. The stream is a one that reads first a chunk of stuff, tries
19: to figure out the format, and calls <CODE>HTStreamStack()</CODE>. This is
20: a kind of lazy-evaluation of <CODE>HTStreamStack()</CODE>.
21: <P>
22: This could be extended arbitrarily to recognize all the possible file formats
23: in the world, if someone only had time to do it.
24: <P>
25: This module is implemented by <A HREF="HTGuess.c">HTGuess.c</A>, and it is
2.18 frystyk 26: a part of the <A HREF="http://www.w3.org/Library/"> W3C Sample Code
2.16 frystyk 27: Library</A>.
2.1 luotonen 28: <PRE>
29: #ifndef HTGUESS_H
30: #define HTGUESS_H
31:
32: #include "HTStream.h"
33: #include "HTFormat.h"
34:
2.19 ! vbancrof 35: #ifdef __cplusplus
! 36: extern "C" {
! 37: #endif
! 38:
2.12 frystyk 39: extern HTConverter HTGuess_new;
2.1 luotonen 40:
2.19 ! vbancrof 41: #ifdef __cplusplus
! 42: }
! 43: #endif
! 44:
2.1 luotonen 45: #endif /* !HTGUESS_H */
2.15 frystyk 46: </PRE>
2.16 frystyk 47: <P>
48: <HR>
2.15 frystyk 49: <ADDRESS>
2.19 ! vbancrof 50: @(#) $Id: HTGuess.html,v 2.18 1998/05/14 02:10:31 frystyk Exp $
2.15 frystyk 51: </ADDRESS>
2.16 frystyk 52: </BODY></HTML>
Webmaster