src/share/classes/sun/security/ssl/EngineOutputRecord.java
Print this page
*** 111,123 ****
void writeBuffer(OutputStream s, byte [] buf, int off, int len,
int debugOffset) throws IOException {
/*
* Copy data out of buffer, it's ready to go.
*/
! ByteBuffer netBB = (ByteBuffer)
! ByteBuffer.allocate(len).put(buf, off, len).flip();
!
writer.putOutboundData(netBB);
}
/*
* Main method for writing non-application data.
--- 111,121 ----
void writeBuffer(OutputStream s, byte [] buf, int off, int len,
int debugOffset) throws IOException {
/*
* Copy data out of buffer, it's ready to go.
*/
! ByteBuffer netBB = ByteBuffer.allocate(len).put(buf, off, len).flip();
writer.putOutboundData(netBB);
}
/*
* Main method for writing non-application data.