comparison src/main/java/org/monetdb/mcl/net/MapiSocket.java @ 867:5a59910e8f87

Resolve some javadoc errors and warnings
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 01 Feb 2024 18:55:11 +0100 (15 months ago)
parents d9a45743536d
children 778959b2e0a4
comparison
equal deleted inserted replaced
866:6d229896c785 867:5a59910e8f87
79 * interface is most sufficient. In particular the BufferedMCL* 79 * interface is most sufficient. In particular the BufferedMCL*
80 * implementations of those interfaces supply some extra functionality 80 * implementations of those interfaces supply some extra functionality
81 * geared towards the format of the data. 81 * geared towards the format of the data.
82 * 82 *
83 * @author Fabian Groffen 83 * @author Fabian Groffen
84 * @version 4.3 84 * @version 4.4
85 * @see org.monetdb.mcl.io.BufferedMCLReader 85 * @see org.monetdb.mcl.io.BufferedMCLReader
86 * @see org.monetdb.mcl.io.BufferedMCLWriter 86 * @see org.monetdb.mcl.io.BufferedMCLWriter
87 */ 87 */
88 public final class MapiSocket { 88 public final class MapiSocket {
89 /* an even number of NUL bytes used during the handshake */ 89 /* an even number of NUL bytes used during the handshake */
768 } 768 }
769 769
770 public boolean isDebug() { 770 public boolean isDebug() {
771 return target.isDebug(); 771 return target.isDebug();
772 } 772 }
773
773 774
774 /** 775 /**
775 * Inner class that is used to write data on a normal stream as a 776 * Inner class that is used to write data on a normal stream as a
776 * blocked stream. A call to the flush() method will write a 777 * blocked stream. A call to the flush() method will write a
777 * "final" block to the underlying stream. Non-final blocks are 778 * "final" block to the underlying stream. Non-final blocks are
1550 */ 1551 */
1551 public abstract void addOptions(String lang, int level); 1552 public abstract void addOptions(String lang, int level);
1552 1553
1553 /** 1554 /**
1554 * Pass option=value during the handshake 1555 * Pass option=value during the handshake
1555 * @param field 1556 * @param field name
1556 * @param value 1557 * @param value int value
1557 */ 1558 */
1558 protected void contribute(String field, int value) { 1559 protected void contribute(String field, int value) {
1559 if (buffer.length() > 0) 1560 if (buffer.length() > 0)
1560 buffer.append(','); 1561 buffer.append(',');
1561 buffer.append(field); 1562 buffer.append(field);
1562 buffer.append('='); 1563 buffer.append('=');
1563 buffer.append(value); 1564 buffer.append(value);
1564 } 1565 }
1565 1566
1566 1567 /**
1568 * Set the buffer
1569 * @param buf a non null StringBuilder object
1570 */
1567 void setBuffer(StringBuilder buf) { 1571 void setBuffer(StringBuilder buf) {
1568 buffer = buf; 1572 buffer = buf;
1569 } 1573 }
1570 } 1574 }
1571 } 1575 }