com.onionnetworks.fec.io
Class DuplicatePacketException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.onionnetworks.fec.io.DuplicatePacketException
- All Implemented Interfaces:
- java.io.Serializable
public class DuplicatePacketException
- extends java.io.IOException
This exception signifies that there was attempt to write a duplicate packet
(c) Copyright 2001 Onion Networks
(c) Copyright 2000 OpenCola
- Author:
- Justin F. Chapweske (justin@chapweske.com)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DuplicatePacketException
public DuplicatePacketException(int blockNum,
int stripeNum,
int packetIndex)
DuplicatePacketException
public DuplicatePacketException(java.lang.String msg,
int blockNum,
int stripeNum,
int packetIndex)
getBlockNum
public int getBlockNum()
- Returns:
- the blockNum of the attempted packet
getStripeNum
public int getStripeNum()
- Returns:
- the stripeNum of the attempted packet
getPacketIndex
public int getPacketIndex()
- Returns:
- the packetIndex of the existing copy of the packet. -1 if the
packetIndex is unknown or there was an attempt to write a padding packet
Copyright © 2002 Onion Networks. All Rights Reserved.