Show
Ignore:
Timestamp:
05/17/08 11:34:28 (8 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Update to SWT 3.4M7

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/internal/Compatibility.d

    r212 r213  
    1515/+ 
    1616import java.io.*; 
     17import java.io.File; 
    1718import java.text.MessageFormat; 
    1819import java.util.MissingResourceException; 
    1920import java.util.ResourceBundle; 
     21import java.util.zip.DeflaterOutputStream; 
    2022import java.util.zip.InflaterInputStream; 
    2123+/ 
     
    3032import tango.sys.Process; 
    3133import dwt.dwthelper.utils; 
     34import tango.io.Path; 
    3235 
    3336/** 
     
    110113 
    111114/** 
     115 * Answers whether the indicated file exists or not. 
     116 * 
     117 * @param parent the file's parent directory 
     118 * @param child the file's name 
     119 * @return true if the file exists 
     120 */ 
     121public static bool fileExists(String parent, String child) { 
     122    return FS.exists( FS.join(parent, child)); 
     123} 
     124 
     125/** 
    112126 * Answers the most positive (i.e. closest to positive infinity) 
    113127 * integer value which is less than the number obtained by dividing 
     
    156170    } 
    157171    return 1; 
     172} 
     173 
     174/** 
     175 * Create an DeflaterOutputStream if such things are supported. 
     176 * 
     177 * @param stream the output stream 
     178 * @return a deflater stream or <code>null</code> 
     179 * @exception IOException 
     180 * 
     181 * @since 3.4 
     182 */ 
     183public static OutputStream newDeflaterOutputStream(OutputStream stream) { 
     184    //DWT_TODO 
     185    implMissing(__FILE__,__LINE__); 
     186    return null; 
     187    //return new DeflaterOutputStream(stream); 
    158188} 
    159189