com.sibvisions.util
Class FileViewer

java.lang.Object
  extended by com.sibvisions.util.FileViewer

public final class FileViewer
extends Object

The FileViewer opens files/documents with the platform dependent viewer application.


Method Summary
static void open(File pDocument)
          Opens a document with the platform dependent viewer.
static void open(String pDocumentName)
          Opens a document with the platform dependent viewer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

open

public static void open(File pDocument)
                 throws IOException
Opens a document with the platform dependent viewer.

Parameters:
pDocument - the document as File reference.
Throws:
IOException - if the viewer can not open the document

open

public static void open(String pDocumentName)
                 throws IOException
Opens a document with the platform dependent viewer.

Parameters:
pDocumentName - the absolute path to the document
Throws:
IOException - if the viewer can not open the document


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.