blob: 7d7ef7a0ec7af620c734c8889557f51e3122bbdb [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_07) on Tue Oct 02 13:04:12 CEST 2012 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>PrefixedStringCodecFactory (Apache MINA 2.0.6 API)</title>
<meta name="date" content="2012-10-02">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="PrefixedStringCodecFactory (Apache MINA 2.0.6 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/PrefixedStringCodecFactory.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringDecoder.html" title="class in org.apache.mina.filter.codec.prefixedstring"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html" target="_top">Frames</a></li>
<li><a href="PrefixedStringCodecFactory.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.mina.filter.codec.prefixedstring</div>
<h2 title="Class PrefixedStringCodecFactory" class="title">Class PrefixedStringCodecFactory</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mina.filter.codec.prefixedstring.PrefixedStringCodecFactory</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html" title="interface in org.apache.mina.filter.codec">ProtocolCodecFactory</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">PrefixedStringCodecFactory</span>
extends <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html" title="interface in org.apache.mina.filter.codec">ProtocolCodecFactory</a></pre>
<div class="block">A <a href="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html" title="interface in org.apache.mina.filter.codec"><code>ProtocolCodecFactory</code></a> that performs encoding and decoding
of a Java String object using a fixed-length length prefix.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd><a href="http://mina.apache.org">Apache MINA Project</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#PrefixedStringCodecFactory()">PrefixedStringCodecFactory</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#PrefixedStringCodecFactory(java.nio.charset.Charset)">PrefixedStringCodecFactory</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;charset)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/mina/filter/codec/ProtocolDecoder.html" title="interface in org.apache.mina.filter.codec">ProtocolDecoder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#getDecoder(org.apache.mina.core.session.IoSession)">getDecoder</a></strong>(<a href="../../../../../../org/apache/mina/core/session/IoSession.html" title="interface in org.apache.mina.core.session">IoSession</a>&nbsp;session)</code>
<div class="block">Returns a new (or reusable) instance of <a href="../../../../../../org/apache/mina/filter/codec/ProtocolDecoder.html" title="interface in org.apache.mina.filter.codec"><code>ProtocolDecoder</code></a> which
decodes binary or protocol-specific data into message objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#getDecoderMaxDataLength()">getDecoderMaxDataLength</a></strong>()</code>
<div class="block">Returns the allowed maximum size of a decoded string.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#getDecoderPrefixLength()">getDecoderPrefixLength</a></strong>()</code>
<div class="block">Gets the length of the length prefix (1, 2, or 4) used by the decoder</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/mina/filter/codec/ProtocolEncoder.html" title="interface in org.apache.mina.filter.codec">ProtocolEncoder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#getEncoder(org.apache.mina.core.session.IoSession)">getEncoder</a></strong>(<a href="../../../../../../org/apache/mina/core/session/IoSession.html" title="interface in org.apache.mina.core.session">IoSession</a>&nbsp;session)</code>
<div class="block">Returns a new (or reusable) instance of <a href="../../../../../../org/apache/mina/filter/codec/ProtocolEncoder.html" title="interface in org.apache.mina.filter.codec"><code>ProtocolEncoder</code></a> which
encodes message objects into binary or protocol-specific data.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#getEncoderMaxDataLength()">getEncoderMaxDataLength</a></strong>()</code>
<div class="block">Returns the allowed maximum size of an encoded string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#getEncoderPrefixLength()">getEncoderPrefixLength</a></strong>()</code>
<div class="block">Gets the length of the length prefix (1, 2, or 4) used by the encoder</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#setDecoderMaxDataLength(int)">setDecoderMaxDataLength</a></strong>(int&nbsp;maxDataLength)</code>
<div class="block">Sets the maximum allowed value specified as data length in the decoded data</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#setDecoderPrefixLength(int)">setDecoderPrefixLength</a></strong>(int&nbsp;prefixLength)</code>
<div class="block">Sets the length of the prefix used by the decoder</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#setEncoderMaxDataLength(int)">setEncoderMaxDataLength</a></strong>(int&nbsp;maxDataLength)</code>
<div class="block">Sets the allowed maximum size of an encoded String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#setEncoderPrefixLength(int)">setEncoderPrefixLength</a></strong>(int&nbsp;prefixLength)</code>
<div class="block">Sets the length of the prefix used by the encoder</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="PrefixedStringCodecFactory(java.nio.charset.Charset)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PrefixedStringCodecFactory</h4>
<pre>public&nbsp;PrefixedStringCodecFactory(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;charset)</pre>
</li>
</ul>
<a name="PrefixedStringCodecFactory()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>PrefixedStringCodecFactory</h4>
<pre>public&nbsp;PrefixedStringCodecFactory()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getEncoderMaxDataLength()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEncoderMaxDataLength</h4>
<pre>public&nbsp;int&nbsp;getEncoderMaxDataLength()</pre>
<div class="block">Returns the allowed maximum size of an encoded string.
If the size of the encoded String exceeds this value, the encoder
will throw a <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a>.
The default value is <a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringEncoder.html#DEFAULT_MAX_DATA_LENGTH"><code>PrefixedStringEncoder.DEFAULT_MAX_DATA_LENGTH</code></a>.
<p/>
This method does the same job as <a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringEncoder.html#setMaxDataLength(int)"><code>PrefixedStringEncoder.setMaxDataLength(int)</code></a>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the allowed maximum size of an encoded string.</dd></dl>
</li>
</ul>
<a name="setEncoderMaxDataLength(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEncoderMaxDataLength</h4>
<pre>public&nbsp;void&nbsp;setEncoderMaxDataLength(int&nbsp;maxDataLength)</pre>
<div class="block">Sets the allowed maximum size of an encoded String.
If the size of the encoded String exceeds this value, the encoder
will throw a <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a>.
The default value is <a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringEncoder.html#DEFAULT_MAX_DATA_LENGTH"><code>PrefixedStringEncoder.DEFAULT_MAX_DATA_LENGTH</code></a>.
<p/>
This method does the same job as <a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringEncoder.html#getMaxDataLength()"><code>PrefixedStringEncoder.getMaxDataLength()</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxDataLength</code> - allowed maximum size of an encoded String.</dd></dl>
</li>
</ul>
<a name="getDecoderMaxDataLength()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDecoderMaxDataLength</h4>
<pre>public&nbsp;int&nbsp;getDecoderMaxDataLength()</pre>
<div class="block">Returns the allowed maximum size of a decoded string.
<p>
This method does the same job as <a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringEncoder.html#setMaxDataLength(int)"><code>PrefixedStringEncoder.setMaxDataLength(int)</code></a>.
</p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the allowed maximum size of an encoded string.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html#setDecoderMaxDataLength(int)"><code>setDecoderMaxDataLength(int)</code></a></dd></dl>
</li>
</ul>
<a name="setDecoderMaxDataLength(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDecoderMaxDataLength</h4>
<pre>public&nbsp;void&nbsp;setDecoderMaxDataLength(int&nbsp;maxDataLength)</pre>
<div class="block">Sets the maximum allowed value specified as data length in the decoded data
<p>
Useful for preventing an OutOfMemory attack by the peer.
The decoder will throw a <a href="../../../../../../org/apache/mina/core/buffer/BufferDataException.html" title="class in org.apache.mina.core.buffer"><code>BufferDataException</code></a> when data length
specified in the incoming data is greater than maxDataLength
The default value is <a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringDecoder.html#DEFAULT_MAX_DATA_LENGTH"><code>PrefixedStringDecoder.DEFAULT_MAX_DATA_LENGTH</code></a>.
This method does the same job as <a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringDecoder.html#setMaxDataLength(int)"><code>PrefixedStringDecoder.setMaxDataLength(int)</code></a>.
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxDataLength</code> - maximum allowed value specified as data length in the incoming data</dd></dl>
</li>
</ul>
<a name="setDecoderPrefixLength(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDecoderPrefixLength</h4>
<pre>public&nbsp;void&nbsp;setDecoderPrefixLength(int&nbsp;prefixLength)</pre>
<div class="block">Sets the length of the prefix used by the decoder</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefixLength</code> - the length of the length prefix (1, 2, or 4)</dd></dl>
</li>
</ul>
<a name="getDecoderPrefixLength()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDecoderPrefixLength</h4>
<pre>public&nbsp;int&nbsp;getDecoderPrefixLength()</pre>
<div class="block">Gets the length of the length prefix (1, 2, or 4) used by the decoder</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>length of the length prefix</dd></dl>
</li>
</ul>
<a name="setEncoderPrefixLength(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEncoderPrefixLength</h4>
<pre>public&nbsp;void&nbsp;setEncoderPrefixLength(int&nbsp;prefixLength)</pre>
<div class="block">Sets the length of the prefix used by the encoder</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefixLength</code> - the length of the length prefix (1, 2, or 4)</dd></dl>
</li>
</ul>
<a name="getEncoderPrefixLength()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEncoderPrefixLength</h4>
<pre>public&nbsp;int&nbsp;getEncoderPrefixLength()</pre>
<div class="block">Gets the length of the length prefix (1, 2, or 4) used by the encoder</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>length of the length prefix</dd></dl>
</li>
</ul>
<a name="getEncoder(org.apache.mina.core.session.IoSession)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEncoder</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/mina/filter/codec/ProtocolEncoder.html" title="interface in org.apache.mina.filter.codec">ProtocolEncoder</a>&nbsp;getEncoder(<a href="../../../../../../org/apache/mina/core/session/IoSession.html" title="interface in org.apache.mina.core.session">IoSession</a>&nbsp;session)
throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html#getEncoder(org.apache.mina.core.session.IoSession)">ProtocolCodecFactory</a></code></strong></div>
<div class="block">Returns a new (or reusable) instance of <a href="../../../../../../org/apache/mina/filter/codec/ProtocolEncoder.html" title="interface in org.apache.mina.filter.codec"><code>ProtocolEncoder</code></a> which
encodes message objects into binary or protocol-specific data.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html#getEncoder(org.apache.mina.core.session.IoSession)">getEncoder</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html" title="interface in org.apache.mina.filter.codec">ProtocolCodecFactory</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="getDecoder(org.apache.mina.core.session.IoSession)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getDecoder</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/mina/filter/codec/ProtocolDecoder.html" title="interface in org.apache.mina.filter.codec">ProtocolDecoder</a>&nbsp;getDecoder(<a href="../../../../../../org/apache/mina/core/session/IoSession.html" title="interface in org.apache.mina.core.session">IoSession</a>&nbsp;session)
throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html#getDecoder(org.apache.mina.core.session.IoSession)">ProtocolCodecFactory</a></code></strong></div>
<div class="block">Returns a new (or reusable) instance of <a href="../../../../../../org/apache/mina/filter/codec/ProtocolDecoder.html" title="interface in org.apache.mina.filter.codec"><code>ProtocolDecoder</code></a> which
decodes binary or protocol-specific data into message objects.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html#getDecoder(org.apache.mina.core.session.IoSession)">getDecoder</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html" title="interface in org.apache.mina.filter.codec">ProtocolCodecFactory</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/PrefixedStringCodecFactory.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../../../../org/apache/mina/filter/codec/prefixedstring/PrefixedStringDecoder.html" title="class in org.apache.mina.filter.codec.prefixedstring"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/mina/filter/codec/prefixedstring/PrefixedStringCodecFactory.html" target="_top">Frames</a></li>
<li><a href="PrefixedStringCodecFactory.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2004-2012 <a href="http://mina.apache.org/">Apache MINA Project</a>. All Rights Reserved.</small></p>
</body>
</html>