com.onionnetworks.fec.io
Class DuplicatePacketException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by 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

Constructor Summary
DuplicatePacketException(int blockNum, int stripeNum, int packetIndex)
           
DuplicatePacketException(java.lang.String msg, int blockNum, int stripeNum, int packetIndex)
           
 
Method Summary
 int getBlockNum()
           
 int getPacketIndex()
           
 int getStripeNum()
           
 
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
 

Constructor Detail

DuplicatePacketException

public DuplicatePacketException(int blockNum,
                                int stripeNum,
                                int packetIndex)

DuplicatePacketException

public DuplicatePacketException(java.lang.String msg,
                                int blockNum,
                                int stripeNum,
                                int packetIndex)
Method Detail

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.