src/share/classes/javax/sound/sampled/LineListener.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1999, 2002, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 23,68 ****
* questions.
*/
package javax.sound.sampled;
!
/**
! * Instances of classes that implement the <code>LineListener</code> interface can register to
! * receive events when a line's status changes.
*
* @author Kara Kytle
- *
* @see Line
* @see Line#addLineListener
* @see Line#removeLineListener
* @see LineEvent
- *
* @since 1.3
*/
! /*
! * Instances of classes that implement the <code>LineListener</code> interface can register to
! * receive events when a line's status changes.
! *
! * @see Line
! * @see Line#addLineListener
! * @see Line#removeLineListener
! * @see LineEvent
! *
! * @author Kara Kytle
! */
! public interface LineListener extends java.util.EventListener {
/**
! * Informs the listener that a line's state has changed. The listener can then invoke
! * <code>LineEvent</code> methods to obtain information about the event.
! * @param event a line event that describes the change
! */
! /*
! * Informs the listener that a line's state has changed. The listener can then invoke
! * <code>LineEvent</code> methods to obtain information about the event.
* @param event a line event that describes the change
*/
! public void update(LineEvent event);
!
! } // interface LineListener
--- 23,51 ----
* questions.
*/
package javax.sound.sampled;
! import java.util.EventListener;
/**
! * Instances of classes that implement the {@code LineListener} interface can
! * register to receive events when a line's status changes.
*
* @author Kara Kytle
* @see Line
* @see Line#addLineListener
* @see Line#removeLineListener
* @see LineEvent
* @since 1.3
*/
! public interface LineListener extends EventListener {
/**
! * Informs the listener that a line's state has changed. The listener can
! * then invoke {@code LineEvent} methods to obtain information about the
! * event.
! *
* @param event a line event that describes the change
*/
! void update(LineEvent event);
! }