1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIInputStream extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 5; 33 34 public static final String NS_IINPUTSTREAM_IID_STR = 35 "fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a"; 36 37 public static final nsID NS_IINPUTSTREAM_IID = 38 new nsID(NS_IINPUTSTREAM_IID_STR); 39 40 public nsIInputStream(int address) { 41 super(address); 42 } 43 44 public int Close() { 45 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress()); 46 } 47 48 public int Available(int[] _retval) { 49 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), _retval); 50 } 51 52 public int Read(byte[] aBuf, int aCount, int[] _retval) { 53 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aBuf, aCount, _retval); 54 } 55 56 public int ReadSegments(int aWriter, int aClosure, int aCount, int[] _retval) { 57 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aWriter, aClosure, aCount, _retval); 58 } 59 60 public int IsNonBlocking(boolean[] _retval) { 61 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), _retval); 62 } 63 } | Popular Tags |