@Test public void testIsComplete() throws Exception { byte[] f1 = NfcUtils.convertASCIIToBin("100200000011"); byte[] f2 = NfcUtils.convertASCIIToBin("D1010D55016E"); byte[] f3 = NfcUtils.convertASCIIToBin("6663746F6F6C"); byte[] f4 = NfcUtils.convertASCIIToBin("732E6F7267"); FragmentReader reader = new FragmentReader(); reader.addFragment(f1); assertFalse(reader.isComplete()); reader.addFragment(f2); assertFalse(reader.isComplete()); reader.addFragment(f3); assertFalse(reader.isComplete()); reader.addFragment(f4); assertTrue(reader.isComplete()); }
public boolean isComplete() { return out.size() == expectedLength; }
FragmentReader { public boolean isComplete() { return out.size() == expectedLength; } }
FragmentReader { public boolean isComplete() { return out.size() == expectedLength; }  }
FragmentReader { public boolean isComplete() { return out.size() == expectedLength; }  void addFragment(byte[] data); void reset(); boolean isComplete(); byte[] getCompleteMessage(); boolean isFirstFragment(); }
FragmentReader { public boolean isComplete() { return out.size() == expectedLength; }  void addFragment(byte[] data); void reset(); boolean isComplete(); byte[] getCompleteMessage(); boolean isFirstFragment();  }