2362N/A * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * ProgressMonitor is a class for monitoring progress in network input stream. 0N/A * @author Stanley Man-Kit Ho 0N/A * Return default ProgressMonitor. 0N/A * Change default ProgressMonitor implementation. 0N/A * Change progress metering policy. 0N/A * Return a snapshot of the ProgressSource list 0N/A // Clone ProgressSource and add to snapshot 0N/A * Return update notification threshold 0N/A * Return true if metering should be turned on 0N/A * for a particular URL input stream. 0N/A * Register progress source when progress is began. 0N/A // Notify only if there is at least one listener 0N/A // Notify progress listener if there is progress change 0N/A // Copy progress listeners to another list to avoid holding locks 0N/A // Fire event on each progress listener 0N/A * Unregister progress source when progress is finished. 0N/A // Return if ProgressEvent does not exist 0N/A // Close entry and remove from map 0N/A // Notify only if there is at least one listener 0N/A // Notify progress listener if there is progress change 0N/A // Copy progress listeners to another list to avoid holding locks 0N/A // Fire event on each progress listener 0N/A * Progress source is updated. 0N/A // Notify only if there is at least one listener 0N/A // Notify progress listener if there is progress change 0N/A // Copy progress listeners to another list to avoid holding locks 0N/A // Fire event on each progress listener 0N/A * Add progress listener in progress monitor. 0N/A * Remove progress listener from progress monitor. 0N/A // Default implementation 0N/A // ArrayList for outstanding progress sources 0N/A // ArrayList for progress listeners 0N/A * Default progress metering policy. 0N/A * Return true if metering should be turned on for a particular network input stream. 0N/A // By default, no URL input stream is metered for 0N/A // performance reason. 0N/A * Return update notification threshold. 0N/A // 8K - same as default I/O buffer size