J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. |
| 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License version 2 only, as |
| 7 | * published by the Free Software Foundation. Sun designates this |
| 8 | * particular file as subject to the "Classpath" exception as provided |
| 9 | * by Sun in the LICENSE file that accompanied this code. |
| 10 | * |
| 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
| 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 14 | * version 2 for more details (a copy is included in the LICENSE file that |
| 15 | * accompanied this code). |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License version |
| 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
| 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | * |
| 21 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 22 | * CA 95054 USA or visit www.sun.com if you need additional information or |
| 23 | * have any questions. |
| 24 | */ |
| 25 | |
| 26 | /** |
| 27 | * $Id: Connection.java,v 1.2 2005/07/23 04:09:58 kohlert Exp $ |
| 28 | */ |
| 29 | |
| 30 | /** Java interface "Connection.java" generated from Poseidon for UML. |
| 31 | * Poseidon for UML is developed by <A HREF="http://www.gentleware.com">Gentleware</A>. |
| 32 | * Generated with <A HREF="http://jakarta.apache.org/velocity/">velocity</A> template engine. |
| 33 | */ |
| 34 | package com.sun.pept.transport; |
| 35 | |
| 36 | import com.sun.pept.ept.EPTFactory; |
| 37 | import java.nio.ByteBuffer; |
| 38 | import java.util.*; |
| 39 | |
| 40 | /** |
| 41 | * <p> |
| 42 | * |
| 43 | * @author Dr. Harold Carr |
| 44 | * </p> |
| 45 | */ |
| 46 | public interface Connection { |
| 47 | |
| 48 | /////////////////////////////////////// |
| 49 | // operations |
| 50 | |
| 51 | /** |
| 52 | * <p> |
| 53 | * Does ... |
| 54 | * </p><p> |
| 55 | * |
| 56 | * </p><p> |
| 57 | * |
| 58 | * @param byteBuffer ... |
| 59 | * </p> |
| 60 | */ |
| 61 | public void write(ByteBuffer byteBuffer); |
| 62 | /** |
| 63 | * <p> |
| 64 | * Does ... |
| 65 | * </p><p> |
| 66 | * |
| 67 | * @return a EPTFactory with ... |
| 68 | * </p> |
| 69 | */ |
| 70 | public EPTFactory getEPTFactory(); |
| 71 | /** |
| 72 | * <p> |
| 73 | * Does ... |
| 74 | * </p><p> |
| 75 | * |
| 76 | * @return a int with ... |
| 77 | * </p><p> |
| 78 | * @param byteBuffer ... |
| 79 | * </p> |
| 80 | */ |
| 81 | public int read(ByteBuffer byteBuffer); |
| 82 | /** |
| 83 | * <p> |
| 84 | * Does ... |
| 85 | * </p><p> |
| 86 | * |
| 87 | * </p> |
| 88 | */ |
| 89 | public ByteBuffer readUntilEnd(); |
| 90 | |
| 91 | } // end Connection |