1*e829566cSChris Fraire /* 2*e829566cSChris Fraire * CDDL HEADER START 3*e829566cSChris Fraire * 4*e829566cSChris Fraire * The contents of this file are subject to the terms of the 5*e829566cSChris Fraire * Common Development and Distribution License (the "License"). 6*e829566cSChris Fraire * You may not use this file except in compliance with the License. 7*e829566cSChris Fraire * 8*e829566cSChris Fraire * See LICENSE.txt included in this distribution for the specific 9*e829566cSChris Fraire * language governing permissions and limitations under the License. 10*e829566cSChris Fraire * 11*e829566cSChris Fraire * When distributing Covered Code, include this CDDL HEADER in each 12*e829566cSChris Fraire * file and include the License file at LICENSE.txt. 13*e829566cSChris Fraire * If applicable, add the following below this CDDL HEADER, with the 14*e829566cSChris Fraire * fields enclosed by brackets "[]" replaced with your own identifying 15*e829566cSChris Fraire * information: Portions Copyright [yyyy] [name of copyright owner] 16*e829566cSChris Fraire * 17*e829566cSChris Fraire * CDDL HEADER END 18*e829566cSChris Fraire */ 19*e829566cSChris Fraire 20*e829566cSChris Fraire /* 21*e829566cSChris Fraire * Copyright (c) 2018, Chris Fraire <cfraire@me.com>. 22*e829566cSChris Fraire */ 23*e829566cSChris Fraire package org.opengrok.indexer.util; 24*e829566cSChris Fraire 25*e829566cSChris Fraire import java.io.IOException; 26*e829566cSChris Fraire 27*e829566cSChris Fraire /** 28*e829566cSChris Fraire * Represents a functional interface for accepting buffers. 29*e829566cSChris Fraire */ 30*e829566cSChris Fraire @FunctionalInterface 31*e829566cSChris Fraire public interface BufferSink { write(byte[] buf, int offset, int n)32*e829566cSChris Fraire void write(byte[] buf, int offset, int n) throws IOException; 33*e829566cSChris Fraire } 34