KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > ole > win32 > IStream


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.internal.ole.win32;
12
13 public class IStream extends IUnknown {
14 public IStream(int /*long*/ address) {
15     super(address);
16 }
17 public int Clone(
18     int /*long*/[] ppstm //Pointer to location for pointer to the new stream object
19
){
20     return COM.VtblCall(13, address, ppstm);
21 }
22 public int Commit( int grfCommitFlags //Specifies how changes are committed
23
){
24     return COM.VtblCall(8, address, grfCommitFlags);
25 }
26 public int Read(int /*long*/ pv, int cb, int[] pcbWritten) {
27     return COM.VtblCall(3, address, pv, cb, pcbWritten);
28 }
29 public int Revert(){
30     return COM.VtblCall(9, address);
31 }
32 public int Write(int /*long*/ pv, int cb, int[] pcbWritten) {
33     return COM.VtblCall(4, address, pv, cb, pcbWritten);
34 }
35 }
36
Popular Tags