~ubuntu-branches/ubuntu/maverick/proguard/maverick

« back to all changes in this revision

Viewing changes to src/proguard/io/CascadingDataEntryWriter.java

  • Committer: Bazaar Package Importer
  • Author(s): Sam Clegg, Onkar Shinde, Sam Clegg
  • Date: 2009-10-09 16:17:49 UTC
  • mfrom: (1.2.3 upstream) (3.1.6 karmic)
  • Revision ID: james.westby@ubuntu.com-20091009161749-qjk059y5r792co7c
Tags: 4.4-1
[ Onkar Shinde ]
* Merge from Ubuntu. (Closes: #534029, #548810)

[ Sam Clegg ]
* Thanks Onkar for the above fixes!
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * ProGuard -- shrinking, optimization, obfuscation, and preverification
3
3
 *             of Java bytecode.
4
4
 *
5
 
 * Copyright (c) 2002-2008 Eric Lafortune (eric@graphics.cornell.edu)
 
5
 * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu)
6
6
 *
7
7
 * This program is free software; you can redistribute it and/or modify it
8
8
 * under the terms of the GNU General Public License as published by the Free
52
52
 
53
53
    // Implementations for DataEntryWriter.
54
54
 
 
55
 
 
56
    public boolean createDirectory(DataEntry dataEntry) throws IOException
 
57
    {
 
58
        // Try to create a directory with the first data entry writer, or
 
59
        // otherwise with the second data entry writer.
 
60
        return dataEntryWriter1.createDirectory(dataEntry) ||
 
61
               dataEntryWriter2.createDirectory(dataEntry);
 
62
    }
 
63
 
 
64
 
55
65
    public OutputStream getOutputStream(DataEntry dataEntry) throws IOException
56
66
    {
57
67
        return getOutputStream(dataEntry,  null);