public void appendSurrogate(ByteData s) throws IOException { if (s == null) { return; } List captureBuffers; if ((captureBuffers = mCaptureBuffers) != null) { int size = captureBuffers.size(); for (int i = 0; i < size; i++) { ((ByteBuffer) captureBuffers.get(i)).appendSurrogate(s); } } if (mSpillover == null) { mLocalBuffer.appendSurrogate(s); } else { mSpillover.appendSurrogate(s); } }