com.aspose.network
Class PersonalStorage

java.lang.Object
  extended by com.aspose.network.PersonalStorage
All Implemented Interfaces:
com.aspose.ms.System.IDisposable

public class PersonalStorage
extends Object
implements com.aspose.ms.System.IDisposable

Represents Personal Storage Table (.pst) file.


Constructor Summary
PersonalStorage()
           
 
Method Summary
 void dispose()
           Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 MapiContact extractContactInfo(MessageInfo messageInfo)
          Deprecated. 
 MapiMessage extractMessage(byte[] entryId)
           Get the message from PST.
 MapiMessage extractMessage(MessageInfo messageInfo)
           Get the message from PST.
 MapiMessage extractMessage(String entryId)
           Get the message from PST.
static PersonalStorage fromFile(String fileName)
           Load PST from file.
static PersonalStorage fromStream(InputStream stream)
           Load PST from stream.
 String getDisplayName()
           Gets the display Name of PST.
 FolderInfo getFolder(byte[] entryId)
          Deprecated. 
 FolderInfo getFolder(String name)
          Deprecated. 
 FolderInfo getFolderById(byte[] entryId)
           Gets the personal folder from PST.
 FolderInfo getFolderById(String entryIdString)
           Gets the personal folder from PST.
 int getFormat()
           Gets the file format.
 MapiMessage getMessage(MessageInfo messageInfo)
          Deprecated. 
 FolderInfo getRootFolder()
           Gets the root folder of PST.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonalStorage

public PersonalStorage()
Method Detail

getRootFolder

public FolderInfo getRootFolder()

Gets the root folder of PST.

Value: FolderInfo that represents a root folder.


getDisplayName

public String getDisplayName()

Gets the display Name of PST.

Value: The string that represents display name.


getFormat

public int getFormat()

Gets the file format.

Value: FileFormat that specifies file format.


The .pst and .ost file formats are supported now.


fromFile

public static PersonalStorage fromFile(String fileName)

Load PST from file.

Parameters:
fileName - Name of .pst file.
Returns:
A PersonalStorage object that represents the current PST.

fromStream

public static PersonalStorage fromStream(InputStream stream)

Load PST from stream.

Parameters:
stream - The System.IO.Stream.
Returns:
A PersonalStorage object that represents the current PST.

getMessage

@Deprecated
public MapiMessage getMessage(MessageInfo messageInfo)
Deprecated. 

Get the message from PST.

Parameters:
messageInfo - A MessageInfo object that represents information about message.
Returns:
A MapiMessage object.

extractMessage

public MapiMessage extractMessage(MessageInfo messageInfo)

Get the message from PST.

Parameters:
messageInfo - A MessageInfo object that represents information about message.
Returns:
A MapiMessage object.

extractMessage

public MapiMessage extractMessage(byte[] entryId)

Get the message from PST.

Parameters:
entryId - EntryId of message.
Returns:
A MapiMessage object.

extractMessage

public MapiMessage extractMessage(String entryId)

Get the message from PST.

Parameters:
entryId - String representation of EntryId.
Returns:
A MapiMessage object.

extractContactInfo

@Deprecated
public MapiContact extractContactInfo(MessageInfo messageInfo)
Deprecated. 

Get the contact information from PST.

Parameters:
messageInfo - A MessageInfo object that represents information about message.
Returns:
A MapiContact object.

getFolder

@Deprecated
public FolderInfo getFolder(String name)
Deprecated. 

Gets the personal folder from PST.

Parameters:
name - Name of personal folder.
Returns:
A FolderInfo object.

getFolder

@Deprecated
public FolderInfo getFolder(byte[] entryId)
Deprecated. 

Gets the personal folder from PST.

Parameters:
entryId - The Entry id.
Returns:
A FolderInfo object.

getFolderById

public FolderInfo getFolderById(byte[] entryId)

Gets the personal folder from PST.

Parameters:
entryId - The Entry id.
Returns:
A FolderInfo object.

getFolderById

public FolderInfo getFolderById(String entryIdString)

Gets the personal folder from PST.

Parameters:
entryIdString - String representation of entry ID.
Returns:
A FolderInfo object.

dispose

public void dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Specified by:
dispose in interface com.aspose.ms.System.IDisposable


Copyright (c) 2002-2011 Aspose Pty Ltd. All Rights Reserved.