/** * Writes the consumed strings as lines to the ISO 8859-1-encoded {@link OutputStream}. */ public static ConsumerWhichThrows<String, IOException> lineConsumerISO8859_1(OutputStream out) { // SUPPRESS CHECKSTYLE MethodName|AbbreviationAsWord return LineUtil.lineConsumer(new OutputStreamWriter(out, LineUtil.CHARSET_ISO_8859_1)); }
/** * Produces lines from a ISO 8859-1-encoded {@link InputStream}. */ public static ProducerWhichThrows<String, IOException> lineProducerISO8859_1(InputStream in) { // SUPPRESS CHECKSTYLE MethodName|AbbreviationAsWord return LineUtil.lineProducer(new InputStreamReader(in, LineUtil.CHARSET_ISO_8859_1)); }
public FtpClient(InputStream controlIn, OutputStream controlOut, InetAddress controlLocalAddress) throws IOException { this.controlIn = LineUtil.lineProducerISO8859_1(controlIn); this.controlOut = LineUtil.lineConsumerISO8859_1(controlOut); this.controlLocalAddress = controlLocalAddress; this.receiveReply(); }
assert packageListUrl.getPath().endsWith("/") : packageListUrl; List<String> packageNames = LineUtil.readAllLines( new InputStreamReader(new URL(packageListUrl, "package-list").openStream()), true // closeReader
lineProducer = LineUtil.readLineWithSeparator(reader);
assert packageListUrl.getPath().endsWith("/") : packageListUrl; List<String> packageNames = LineUtil.readAllLines( new InputStreamReader(new URL(packageListUrl, "package-list").openStream()), true // closeReader
public FtpClient(InputStream controlIn, OutputStream controlOut, InetAddress controlLocalAddress) throws IOException { this.controlIn = LineUtil.lineProducerISO8859_1(controlIn); this.controlOut = LineUtil.lineConsumerISO8859_1(controlOut); this.controlLocalAddress = controlLocalAddress; this.receiveReply(); }
/** * Writes the consumed strings as lines to the ISO 8859-1-encoded {@link OutputStream}. */ public static ConsumerWhichThrows<String, IOException> lineConsumerISO8859_1(OutputStream out) { // SUPPRESS CHECKSTYLE MethodName|AbbreviationAsWord return LineUtil.lineConsumer(new OutputStreamWriter(out, LineUtil.CHARSET_ISO_8859_1)); }
/** * Produces lines from a ISO 8859-1-encoded {@link InputStream}. */ public static ProducerWhichThrows<String, IOException> lineProducerISO8859_1(InputStream in) { // SUPPRESS CHECKSTYLE MethodName|AbbreviationAsWord return LineUtil.lineProducer(new InputStreamReader(in, LineUtil.CHARSET_ISO_8859_1)); }
public FtpSession( InputStream controlIn, OutputStream controlOut, InetSocketAddress controlLocalSocketAddress, InetAddress controlRemoteAddress, Ftplett ftplett ) { this.controlIn = LineUtil.lineProducerISO8859_1(controlIn); this.controlOut = LineUtil.lineConsumerISO8859_1(controlOut); this.interfacE = controlLocalSocketAddress.getAddress(); this.activeDataRemoteSocketAddress = new InetSocketAddress( controlRemoteAddress, controlLocalSocketAddress.getPort() - 1 ); this.ftplett = ftplett; }
/** * Generates a plain text document from the given HTML <var>document</var>, and writes it to the {@code output}. * <p> * Line breaks are created through {@link PrintWriter#println()} and are thus platform-dependent. * </p> */ public void html2txt(final Document document, Writer output) throws HtmlException { document.getDocumentElement().normalize(); PrintWriter pw = output instanceof PrintWriter ? (PrintWriter) output : new PrintWriter(output); this.html2txt(document, LineUtil.lineConsumer(pw)); }
Producer<? extends CharSequence> lp = LineUtil.lineProducer(sb); for (boolean first = true;; first = false) {
public FtpSession( InputStream controlIn, OutputStream controlOut, InetSocketAddress controlLocalSocketAddress, InetAddress controlRemoteAddress, Ftplett ftplett ) { this.controlIn = LineUtil.lineProducerISO8859_1(controlIn); this.controlOut = LineUtil.lineConsumerISO8859_1(controlOut); this.interfacE = controlLocalSocketAddress.getAddress(); this.activeDataRemoteSocketAddress = new InetSocketAddress( controlRemoteAddress, controlLocalSocketAddress.getPort() - 1 ); this.ftplett = ftplett; }
) throws IOException { Connection client = FtpReverseProxy.connection( LineUtil.lineProducerISO8859_1(clientIn), ConsumerUtil.tee( LineUtil.lineConsumerISO8859_1(clientOut), ConsumerUtil.<String, IOException>widen2( LogUtil.logConsumer(FtpReverseProxy.LOGGER, Level.FINE, "<<< ") LineUtil.lineProducerISO8859_1(serverIn), ConsumerUtil.tee( LineUtil.lineConsumerISO8859_1(serverOut), ConsumerUtil.<String, IOException>widen2( LogUtil.logConsumer(FtpReverseProxy.LOGGER, Level.FINE, ">>> ")
) throws IOException { Connection client = FtpReverseProxy.connection( LineUtil.lineProducerISO8859_1(clientIn), ConsumerUtil.tee( LineUtil.lineConsumerISO8859_1(clientOut), ConsumerUtil.<String, IOException>widen2( LogUtil.logConsumer(FtpReverseProxy.LOGGER, Level.FINE, "<<< ") LineUtil.lineProducerISO8859_1(serverIn), ConsumerUtil.tee( LineUtil.lineConsumerISO8859_1(serverOut), ConsumerUtil.<String, IOException>widen2( LogUtil.logConsumer(FtpReverseProxy.LOGGER, Level.FINE, ">>> ")