01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.internal.ole.win32;
11:
12: public class IStream extends IUnknown {
13: public IStream(int /*long*/address) {
14: super (address);
15: }
16:
17: public int Clone(int /*long*/[] ppstm //Pointer to location for pointer to the new stream object
18: ) {
19: return COM.VtblCall(13, address, ppstm);
20: }
21:
22: public int Commit(int grfCommitFlags //Specifies how changes are committed
23: ) {
24: return COM.VtblCall(8, address, grfCommitFlags);
25: }
26:
27: public int Read(int /*long*/pv, int cb, int[] pcbWritten) {
28: return COM.VtblCall(3, address, pv, cb, pcbWritten);
29: }
30:
31: public int Revert() {
32: return COM.VtblCall(9, address);
33: }
34:
35: public int Write(int /*long*/pv, int cb, int[] pcbWritten) {
36: return COM.VtblCall(4, address, pv, cb, pcbWritten);
37: }
38: }
|