home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 September / PCO_0998.ISO / browser / ns405lyc / nav40.z / java40.jar / netscape / secfile / SecureFileWriter.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-03-24  |  1.1 KB  |  33 lines

  1. package netscape.secfile;
  2.  
  3. import java.io.FileDescriptor;
  4. import java.io.IOException;
  5. import java.io.OutputStreamWriter;
  6. import netscape.security.Principal;
  7.  
  8. public class SecureFileWriter extends OutputStreamWriter {
  9.    public SecureFileWriter(String var1) throws IOException {
  10.       super(new SecureFileOutputStream(var1, false, SecureFile.getClassPrincipal(1), 1));
  11.    }
  12.  
  13.    public SecureFileWriter(String var1, boolean var2) throws IOException {
  14.       super(new SecureFileOutputStream(var1, var2, SecureFile.getClassPrincipal(1), 1));
  15.    }
  16.  
  17.    public SecureFileWriter(SecureFile var1) throws IOException {
  18.       super(new SecureFileOutputStream(var1.getPath(), false, var1.getPrincipal(), 1));
  19.    }
  20.  
  21.    public SecureFileWriter(FileDescriptor var1) {
  22.       super(new SecureFileOutputStream(var1));
  23.    }
  24.  
  25.    public SecureFileWriter(String var1, Principal var2) throws IOException {
  26.       super(new SecureFileOutputStream(var1, false, var2, 1));
  27.    }
  28.  
  29.    public SecureFileWriter(String var1, boolean var2, Principal var3) throws IOException {
  30.       super(new SecureFileOutputStream(var1, var2, var3, 1));
  31.    }
  32. }
  33.