MightyPork

base storage symbolic workflow

Mar 15th, 2014
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. IOE - IOException
  2. CDE - CorruptDataException
  3. IAE - IllegalArgumentException
  4. INRE - IllegalNumberRangeException
  5.  
  6.  
  7.  
  8. write(o)
  9. initialize (load from provider using parser)
  10.  
  11. readonly
  12. -> IOE
  13.  
  14. next free slot >= capacity
  15. -> IOE
  16.  
  17. corrupt
  18. -> CDE (null, "message.");
  19.  
  20. o is null
  21. ->
  22. IAE
  23.  
  24. writeToFreeSlot
  25.  
  26.  
  27.  
  28. read(i)
  29. initialize
  30.  
  31. index < 0 OR
  32. index >= capacity
  33. -> INRE
  34.  
  35. i >= next free slot
  36. -> IOE
  37.  
  38. corrupt
  39. -> CDE (null data, message)
  40.  
  41. null at index i
  42. -> IOE
  43.  
  44. return item at index i
Advertisement
Add Comment
Please, Sign In to add comment