home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML in Action / Dynamicke-HTML-v-akci-covermount.bin / XML / PARSER / XMLINST.EXE / classes / com / ms / xml / xmlstream / XMLStream.java < prev   
Encoding:
Java Source  |  1997-11-17  |  1.8 KB  |  68 lines

  1. //
  2. // Auto-generated using JActiveX.EXE 4.79.2228
  3. //   (jactivex /javatlb /d . /p com.ms.xml /r xmlurlstream.tlb)
  4. //
  5. // WARNING: Do not remove the comments that include "@com" directives.
  6. // This source file must be compiled by a @com-aware compiler.
  7. // If you are using the Microsoft Visual J++ compiler, you must use
  8. // version 1.02.3920 or later. Previous versions will not issue an error
  9. // but will not generate COM-enabled class files.
  10. //
  11.  
  12. package com.ms.xml.xmlstream;
  13.  
  14. import com.ms.com.*;
  15. import com.ms.com.IUnknown;
  16. import com.ms.com.Variant;
  17. import com.ms.xml.util.XMLStreamReader;
  18.  
  19. /** @com.class(classid=0C97E34E-412B-11D1-A2CB-00C04FD73533,DynamicCasts)
  20. */
  21. public class XMLStream
  22.     implements IUnknown,com.ms.com.NoAutoScripting,IXMLStream,XMLStreamReader
  23. {
  24.   /** @com.method() */
  25.   public native int Open(String url);
  26.  
  27.   /** @com.method() */
  28.   public native int Read(int[] buf, int len);
  29.  
  30.   /** @com.method() */
  31.   public native void SetEncoding(int encoding, int offset);
  32.  
  33.   /** @com.method() */
  34.   public native void Close();
  35.  
  36.   public static final com.ms.com._Guid clsid = new com.ms.com._Guid((int)0xc97e34e, (short)0x412b, (short)0x11d1, (byte)0xa2, (byte)0xcb, (byte)0x0, (byte)0xc0, (byte)0x4f, (byte)0xd7, (byte)0x35, (byte)0x33);
  37.  
  38.     /** Implementation of XMLStreamReader interface through which XMLInputStream
  39.      *    accesses XMLStream indirectly to remove direct dependency on native code.
  40.      *
  41.      *    Don Park
  42.      */
  43.  
  44.         public int
  45.     open (String url)
  46.     {
  47.         return ((IXMLStream)this).Open(url);
  48.     }
  49.  
  50.         public int
  51.     read (int[] buf, int len)
  52.     {
  53.         return ((IXMLStream)this).Read(buf, len);
  54.     }
  55.  
  56.         public void
  57.     setEncoding (int encoding, int offset)
  58.     {
  59.         ((IXMLStream)this).SetEncoding(encoding, offset);
  60.     }
  61.  
  62.         public void
  63.     close()
  64.     {
  65.         ((IXMLStream)this).Close();
  66.     }
  67. }
  68.