|
What this is
Other links
The source code/* * Copyright 2001-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.net.io; import java.util.EventListener; /** * The CopyStreamListener class can accept CopyStreamEvents to keep track * of the progress of a stream copying operation. However, it is currently * not used that way within NetComponents for performance reasons. Rather * the bytesTransferred(long, int) method is called directly rather than * passing an event to bytesTransferred(CopyStreamEvent), saving the creation * of a CopyStreamEvent instance. Also, the only place where * CopyStreamListener is currently used within NetComponents is in the * static methods of the uninstantiable org.apache.commons.io.Util class, which * would preclude the use of addCopyStreamListener and * removeCopyStreamListener methods. However, future additions may use the * JavaBean event model, which is why the hooks have been included from the * beginning. * |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.