equal
deleted
inserted
replaced
125 private String pattern; |
125 private String pattern; |
126 private String lockFileName; |
126 private String lockFileName; |
127 private FileOutputStream lockStream; |
127 private FileOutputStream lockStream; |
128 private File files[]; |
128 private File files[]; |
129 private static final int MAX_LOCKS = 100; |
129 private static final int MAX_LOCKS = 100; |
130 private static java.util.HashMap<String, String> locks = new java.util.HashMap<String, String>(); |
130 private static java.util.HashMap<String, String> locks = new java.util.HashMap<>(); |
131 |
131 |
132 // A metered stream is a subclass of OutputStream that |
132 // A metered stream is a subclass of OutputStream that |
133 // (a) forwards all its output to a target stream |
133 // (a) forwards all its output to a target stream |
134 // (b) keeps track of how many bytes have been written |
134 // (b) keeps track of how many bytes have been written |
135 private class MeteredStream extends OutputStream { |
135 private class MeteredStream extends OutputStream { |