public void write(int b) throws IOException { write(new byte[] { (byte)b }, 0, 1); }
private void checkBufferSize() throws IOException { // Have we gone over the mini stream limit yet? if (_buffer.size() > POIFSConstants.BIG_BLOCK_MINIMUM_DOCUMENT_SIZE) { // Will need to be in the main stream byte[] data = _buffer.toByteArray(); _buffer = null; write(data, 0, data.length); } else { // So far, mini stream will work, keep going } }
public void processPOIFSWriterEvent(POIFSWriterEvent event) { try { event.getStream().write(buf, 0, event.getLimit()); } catch (IOException e) { throw new EncryptedDocumentException(e); } } });
public void write(int b) throws IOException { write(new byte[] { (byte)b }, 0, 1); }
/** * Writes b.length bytes from the specified byte array * to this output stream. * * @param b the data. * @exception IOException if an I/O error occurs. */ public void write(byte b[]) throws IOException { write(b, 0, b.length); }
/** * Writes b.length bytes from the specified byte array * to this output stream. * * @param b the data. * @exception IOException if an I/O error occurs. */ public void write(byte b[]) throws IOException { write(b, 0, b.length); }
private void checkBufferSize() throws IOException { // Have we gone over the mini stream limit yet? if (_buffer.size() > POIFSConstants.BIG_BLOCK_MINIMUM_DOCUMENT_SIZE) { // Will need to be in the main stream byte[] data = _buffer.toByteArray(); _buffer = null; write(data, 0, data.length); } else { // So far, mini stream will work, keep going } }
public void processPOIFSWriterEvent(POIFSWriterEvent event) { try { event.getStream().write(buf, 0, event.getLimit()); } catch (IOException e) { throw new EncryptedDocumentException(e); } } });