org.rapla.components.iolayer
Interface IOInterface

All Known Implementing Classes:
DefaultIO, WebstartIO

public interface IOInterface

The IO layer is an abstraction from the io differences in webstart or desktop mode


Field Summary
static double INCH_TO_MM
           
static double MM_TO_INCH
           
static String ROLE
           
 
Method Summary
 PageFormat defaultPage()
           
 FileContent openFile(Frame frame, String dir, String[] fileExtensions)
           
 boolean print(Printable printable, PageFormat format, boolean askFormat)
           
 void saveAsPostscript(Printable printable, PageFormat format, OutputStream out)
           
 String saveAsPostscriptShowDialog(String toDir, Printable printable, PageFormat format, boolean askFormat, Component owner)
           
 String saveFile(Frame frame, String dir, String[] fileExtensions, String path, byte[] content)
           
 void setContents(Transferable transferable, ClipboardOwner owner)
           
 PageFormat showFormatDialog(PageFormat format)
           
 boolean supportsPostscriptExport()
           
 

Field Detail

ROLE

static final String ROLE

INCH_TO_MM

static final double INCH_TO_MM
See Also:
Constant Field Values

MM_TO_INCH

static final double MM_TO_INCH
See Also:
Constant Field Values
Method Detail

saveAsPostscriptShowDialog

String saveAsPostscriptShowDialog(String toDir,
                                  Printable printable,
                                  PageFormat format,
                                  boolean askFormat,
                                  Component owner)
                                  throws IOException,
                                         UnsupportedOperationException
Throws:
IOException
UnsupportedOperationException

saveAsPostscript

void saveAsPostscript(Printable printable,
                      PageFormat format,
                      OutputStream out)
                      throws IOException,
                             UnsupportedOperationException
Throws:
IOException
UnsupportedOperationException

print

boolean print(Printable printable,
              PageFormat format,
              boolean askFormat)
              throws PrinterException,
                     UnsupportedOperationException
Throws:
PrinterException
UnsupportedOperationException

defaultPage

PageFormat defaultPage()
                       throws UnsupportedOperationException
Throws:
UnsupportedOperationException

showFormatDialog

PageFormat showFormatDialog(PageFormat format)
                            throws UnsupportedOperationException
Throws:
UnsupportedOperationException

setContents

void setContents(Transferable transferable,
                 ClipboardOwner owner)

saveFile

String saveFile(Frame frame,
                String dir,
                String[] fileExtensions,
                String path,
                byte[] content)
                throws IOException
Throws:
IOException

openFile

FileContent openFile(Frame frame,
                     String dir,
                     String[] fileExtensions)
                     throws IOException
Throws:
IOException

supportsPostscriptExport

boolean supportsPostscriptExport()


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.