com.jniwrapper.win32.com
Interface IPersistFile

All Superinterfaces:
AutoDeleteParameter, IPersist, IUnknown
All Known Implementing Classes:
IPersistFileImpl

public interface IPersistFile
extends IPersist

This interface provides a method for loading and saving files to a disk.

See Also:
Microsoft COM SDK documentation

Field Summary
static java.lang.String INTERFACE_IDENTIFIER
           
 
Method Summary
 OleStr getCurFile()
           
 Int32 isDirty()
           
 void load(OleStr pszFileName, StgMode dwMode)
           
 HResult save(OleStr pszFileName, VariantBool fRemember)
           
 void saveCompleted(OleStr pszFileName)
           
 
Methods inherited from interface com.jniwrapper.win32.com.IPersist
getClassID
 
Methods inherited from interface com.jniwrapper.win32.com.IUnknown
addRef, isNull, queryInterface, release, setNull
 
Methods inherited from interface com.jniwrapper.AutoDeleteParameter
isAutoDelete, setAutoDelete
 

Field Detail

INTERFACE_IDENTIFIER

public static final java.lang.String INTERFACE_IDENTIFIER
See Also:
Constant Field Values
Method Detail

isDirty

public Int32 isDirty()

load

public void load(OleStr pszFileName,
                 StgMode dwMode)
          throws ComException
Parameters:
pszFileName - [in]
dwMode - [in]
Throws:
ComException

save

public HResult save(OleStr pszFileName,
                    VariantBool fRemember)
             throws ComException
Parameters:
pszFileName - [in]
fRemember - [in]
Returns:
returns non-negative result of native method. Can be used to determine user choise in overwrite dialog.
Throws:
ComException

saveCompleted

public void saveCompleted(OleStr pszFileName)
                   throws ComException
Parameters:
pszFileName - [in]
Throws:
ComException

getCurFile

public OleStr getCurFile()
                  throws ComException
Throws:
ComException