128129130131132133134135136137138
public InputStream getWrittenDataAsStream() throws IOException { flushBuffers(); if (stream != null) { ByteBuffer firstBuffer = stream.getFirstBuffer(); firstBuffer.compact(); return new FastBufferInputStream(firstBuffer); } else { return EMPTY_STREAM; } }
7374757677787980818283
// Swallow } } } ByteBuffer buffer = fbos.getFirstBuffer(); buffer.compact(); return new FastBufferInputStream(buffer); } protected void write(BufferedImage image, String formatName, ImageOutputStream imageOutputStream) throws IOException {
161162163164165166167168169170171
} } ByteBuffer buffer = os.getFirstBuffer(); buffer.compact(); return buffer; } public void initialize(Resource resource) throws IOException {