📄 iobufferwrapper.html
字号:
<a name="456" href="#456">456</a> <strong class="jxr_keyword">return</strong> buf.asDoubleBuffer();<a name="457" href="#457">457</a> }<a name="458" href="#458">458</a> <a name="459" href="#459">459</a> @Override<a name="460" href="#460">460</a> <strong class="jxr_keyword">public</strong> String getHexDump() {<a name="461" href="#461">461</a> <strong class="jxr_keyword">return</strong> buf.getHexDump();<a name="462" href="#462">462</a> }<a name="463" href="#463">463</a> <a name="464" href="#464">464</a> @Override<a name="465" href="#465">465</a> <strong class="jxr_keyword">public</strong> String getString(<strong class="jxr_keyword">int</strong> fieldSize, CharsetDecoder decoder)<a name="466" href="#466">466</a> <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="467" href="#467">467</a> <strong class="jxr_keyword">return</strong> buf.getString(fieldSize, decoder);<a name="468" href="#468">468</a> }<a name="469" href="#469">469</a> <a name="470" href="#470">470</a> @Override<a name="471" href="#471">471</a> <strong class="jxr_keyword">public</strong> String getString(CharsetDecoder decoder)<a name="472" href="#472">472</a> <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="473" href="#473">473</a> <strong class="jxr_keyword">return</strong> buf.getString(decoder);<a name="474" href="#474">474</a> }<a name="475" href="#475">475</a> <a name="476" href="#476">476</a> @Override<a name="477" href="#477">477</a> <strong class="jxr_keyword">public</strong> String getPrefixedString(CharsetDecoder decoder)<a name="478" href="#478">478</a> <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="479" href="#479">479</a> <strong class="jxr_keyword">return</strong> buf.getPrefixedString(decoder);<a name="480" href="#480">480</a> }<a name="481" href="#481">481</a> <a name="482" href="#482">482</a> @Override<a name="483" href="#483">483</a> <strong class="jxr_keyword">public</strong> String getPrefixedString(<strong class="jxr_keyword">int</strong> prefixLength, CharsetDecoder decoder)<a name="484" href="#484">484</a> <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="485" href="#485">485</a> <strong class="jxr_keyword">return</strong> buf.getPrefixedString(prefixLength, decoder);<a name="486" href="#486">486</a> }<a name="487" href="#487">487</a> <a name="488" href="#488">488</a> @Override<a name="489" href="#489">489</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> putString(CharSequence in, <strong class="jxr_keyword">int</strong> fieldSize,<a name="490" href="#490">490</a> CharsetEncoder encoder) <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="491" href="#491">491</a> buf.putString(in, fieldSize, encoder);<a name="492" href="#492">492</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="493" href="#493">493</a> }<a name="494" href="#494">494</a> <a name="495" href="#495">495</a> @Override<a name="496" href="#496">496</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> putString(CharSequence in, CharsetEncoder encoder)<a name="497" href="#497">497</a> <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="498" href="#498">498</a> buf.putString(in, encoder);<a name="499" href="#499">499</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="500" href="#500">500</a> }<a name="501" href="#501">501</a> <a name="502" href="#502">502</a> @Override<a name="503" href="#503">503</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> putPrefixedString(CharSequence in, CharsetEncoder encoder)<a name="504" href="#504">504</a> <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="505" href="#505">505</a> buf.putPrefixedString(in, encoder);<a name="506" href="#506">506</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="507" href="#507">507</a> }<a name="508" href="#508">508</a> <a name="509" href="#509">509</a> @Override<a name="510" href="#510">510</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> putPrefixedString(CharSequence in, <strong class="jxr_keyword">int</strong> prefixLength,<a name="511" href="#511">511</a> CharsetEncoder encoder) <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="512" href="#512">512</a> buf.putPrefixedString(in, prefixLength, encoder);<a name="513" href="#513">513</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="514" href="#514">514</a> }<a name="515" href="#515">515</a> <a name="516" href="#516">516</a> @Override<a name="517" href="#517">517</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> putPrefixedString(CharSequence in, <strong class="jxr_keyword">int</strong> prefixLength,<a name="518" href="#518">518</a> <strong class="jxr_keyword">int</strong> padding, CharsetEncoder encoder)<a name="519" href="#519">519</a> <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="520" href="#520">520</a> buf.putPrefixedString(in, prefixLength, padding, encoder);<a name="521" href="#521">521</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="522" href="#522">522</a> }<a name="523" href="#523">523</a> <a name="524" href="#524">524</a> @Override<a name="525" href="#525">525</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> putPrefixedString(CharSequence in, <strong class="jxr_keyword">int</strong> prefixLength,<a name="526" href="#526">526</a> <strong class="jxr_keyword">int</strong> padding, byte padValue, CharsetEncoder encoder)<a name="527" href="#527">527</a> <strong class="jxr_keyword">throws</strong> CharacterCodingException {<a name="528" href="#528">528</a> buf.putPrefixedString(in, prefixLength, padding, padValue, encoder);<a name="529" href="#529">529</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="530" href="#530">530</a> }<a name="531" href="#531">531</a> <a name="532" href="#532">532</a> @Override<a name="533" href="#533">533</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> skip(<strong class="jxr_keyword">int</strong> size) {<a name="534" href="#534">534</a> buf.skip(size);<a name="535" href="#535">535</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="536" href="#536">536</a> }<a name="537" href="#537">537</a> <a name="538" href="#538">538</a> @Override<a name="539" href="#539">539</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> fill(byte value, <strong class="jxr_keyword">int</strong> size) {<a name="540" href="#540">540</a> buf.fill(value, size);<a name="541" href="#541">541</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="542" href="#542">542</a> }<a name="543" href="#543">543</a> <a name="544" href="#544">544</a> @Override<a name="545" href="#545">545</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> fillAndReset(byte value, <strong class="jxr_keyword">int</strong> size) {<a name="546" href="#546">546</a> buf.fillAndReset(value, size);<a name="547" href="#547">547</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="548" href="#548">548</a> }<a name="549" href="#549">549</a> <a name="550" href="#550">550</a> @Override<a name="551" href="#551">551</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> fill(<strong class="jxr_keyword">int</strong> size) {<a name="552" href="#552">552</a> buf.fill(size);<a name="553" href="#553">553</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="554" href="#554">554</a> }<a name="555" href="#555">555</a> <a name="556" href="#556">556</a> @Override<a name="557" href="#557">557</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> fillAndReset(<strong class="jxr_keyword">int</strong> size) {<a name="558" href="#558">558</a> buf.fillAndReset(size);<a name="559" href="#559">559</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="560" href="#560">560</a> }<a name="561" href="#561">561</a> <a name="562" href="#562">562</a> @Override<a name="563" href="#563">563</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isAutoExpand() {<a name="564" href="#564">564</a> <strong class="jxr_keyword">return</strong> buf.isAutoExpand();<a name="565" href="#565">565</a> }<a name="566" href="#566">566</a> <a name="567" href="#567">567</a> @Override<a name="568" href="#568">568</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> setAutoExpand(<strong class="jxr_keyword">boolean</strong> autoExpand) {<a name="569" href="#569">569</a> buf.setAutoExpand(autoExpand);<a name="570" href="#570">570</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="571" href="#571">571</a> }<a name="572" href="#572">572</a> <a name="573" href="#573">573</a> @Override<a name="574" href="#574">574</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> expand(<strong class="jxr_keyword">int</strong> pos, <strong class="jxr_keyword">int</strong> expectedRemaining) {<a name="575" href="#575">575</a> buf.expand(pos, expectedRemaining);<a name="576" href="#576">576</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="577" href="#577">577</a> }<a name="578" href="#578">578</a> <a name="579" href="#579">579</a> @Override<a name="580" href="#580">580</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> expand(<strong class="jxr_keyword">int</strong> expectedRemaining) {<a name="581" href="#581">581</a> buf.expand(expectedRemaining);<a name="582" href="#582">582</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="583" href="#583">583</a> }<a name="584" href="#584">584</a> <a name="585" href="#585">585</a> @Override<a name="586" href="#586">586</a> <strong class="jxr_keyword">public</strong> Object getObject() <strong class="jxr_keyword">throws</strong> ClassNotFoundException {<a name="587" href="#587">587</a> <strong class="jxr_keyword">return</strong> buf.getObject();<a name="588" href="#588">588</a> }<a name="589" href="#589">589</a> <a name="590" href="#590">590</a> @Override<a name="591" href="#591">591</a> <strong class="jxr_keyword">public</strong> Object getObject(ClassLoader classLoader)<a name="592" href="#592">592</a> <strong class="jxr_keyword">throws</strong> ClassNotFoundException {<a name="593" href="#593">593</a> <strong class="jxr_keyword">return</strong> buf.getObject(classLoader);<a name="594" href="#594">594</a> }<a name="595" href="#595">595</a> <a name="596" href="#596">596</a> @Override<a name="597" href="#597">597</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/mina/common/IoBuffer.html">IoBuffer</a> putObject(Object o) {<a name="598" href="#598">598</a> buf.putObject(o);<a name="599" href="#599">599</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;<a name="600" href="#600">600</a> }<a name="601" href="#601">601</a> <a name="602" href="#602">602</a> @Override<a name="603" href="#603">603</a> <strong class="jxr_keyword">public</strong> InputStream asInputStream() {<a name="604" href="#604">604</a> <strong class="jxr_keyword">return</strong> buf.asInputStream();<a name="605" href="#605">605</a> }<a name="606" href="#606">606</a> <a name="607" href="#607">607</a> @Override<a name="608" href="#608">608</a> <strong class="jxr_keyword">public</strong> OutputStream asOutputStream() {<a name="609" href="#609">609</a> <strong class="jxr_keyword">return</strong> buf.asOutputStream();<a name="610" href="#610">610</a> }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -