public final void flush() throws IOException { flushBuffer(); mOut.flush(); }
int ptr = mOutputPtr; if ((ptr + 10) >= buf.length) { // &#x [up to 6 hex digits] ; flushBuffer(); ptr = mOutputPtr;
protected final void writeAscii(byte b1, byte b2) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if ((mOutputPtr + 1) >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b1; mOutputBuffer[mOutputPtr++] = b2; }
protected final void writeAscii(byte b) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if (mOutputPtr >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b; }
protected final void writeAscii(String str) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } int len = str.length(); int ptr = mOutputPtr; byte[] buf = mOutputBuffer; if ((ptr + len) >= buf.length) { /* It's even possible that String is longer than the buffer (not * likely, possible). If so, let's just call the full * method: */ if (len > buf.length) { writeRaw(str, 0, len); return; } flushBuffer(); ptr = mOutputPtr; } mOutputPtr += len; for (int i = 0; i < len; ++i) { buf[ptr++] = (byte)str.charAt(i); } }
public final void writeRawAscii(char[] buf, int offset, int len) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } int ptr = mOutputPtr; byte[] dst = mOutputBuffer; if ((ptr + len) >= dst.length) { if (len > dst.length) { writeRaw(buf, offset, len); return; } flushBuffer(); ptr = mOutputPtr; } mOutputPtr += len; for (int i = 0; i < len; ++i) { dst[ptr+i] = (byte)buf[offset+i]; } }
@Override public final void flush() throws IOException { flushBuffer(); mOut.flush(); }
public final void flush() throws IOException { flushBuffer(); mOut.flush(); }
public final void flush() throws IOException { flushBuffer(); mOut.flush(); }
@Override public final void flush() throws IOException { flushBuffer(); mOut.flush(); }
protected final void writeAscii(byte b) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if (mOutputPtr >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b; }
protected final void writeAscii(byte b1, byte b2) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if ((mOutputPtr + 1) >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b1; mOutputBuffer[mOutputPtr++] = b2; }
protected final void writeAscii(byte b) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if (mOutputPtr >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b; }
protected final void writeAscii(byte b) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if (mOutputPtr >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b; }
protected final void writeAscii(byte b1, byte b2) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if ((mOutputPtr + 1) >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b1; mOutputBuffer[mOutputPtr++] = b2; }
protected final void writeAscii(byte b1, byte b2) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if ((mOutputPtr + 1) >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b1; mOutputBuffer[mOutputPtr++] = b2; }
protected final void writeAscii(byte b1, byte b2) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if ((mOutputPtr + 1) >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b1; mOutputBuffer[mOutputPtr++] = b2; }
protected final void writeAscii(byte b) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if (mOutputPtr >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b; }
protected final void writeAscii(byte b) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if (mOutputPtr >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b; }
protected final void writeAscii(byte b) throws IOException { if (mSurrogate != 0) { throwUnpairedSurrogate(); } if (mOutputPtr >= mOutputBuffer.length) { flushBuffer(); } mOutputBuffer[mOutputPtr++] = b; }