⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objectserializationcodecfactory.html

📁 MINA+API 关于MINA的API
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ObjectSerializationCodecFactory()"><!-- --></A><H3>ObjectSerializationCodecFactory</H3><PRE>public <B>ObjectSerializationCodecFactory</B>()</PRE><DL><DD>Creates a new instance with the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A> of the current thread.<P></DL><HR><A NAME="ObjectSerializationCodecFactory(java.lang.ClassLoader)"><!-- --></A><H3>ObjectSerializationCodecFactory</H3><PRE>public <B>ObjectSerializationCodecFactory</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;classLoader)</PRE><DL><DD>Creates a new instance with the specified <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A>.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getEncoder(org.apache.mina.common.IoSession)"><!-- --></A><H3>getEncoder</H3><PRE>public <A HREF="../../../../../../org/apache/mina/filter/codec/ProtocolEncoder.html" title="interface in org.apache.mina.filter.codec">ProtocolEncoder</A> <B>getEncoder</B>(<A HREF="../../../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A>&nbsp;session)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html#getEncoder(org.apache.mina.common.IoSession)">ProtocolCodecFactory</A></CODE></B></DD><DD>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.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html#getEncoder(org.apache.mina.common.IoSession)">getEncoder</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html" title="interface in org.apache.mina.filter.codec">ProtocolCodecFactory</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDecoder(org.apache.mina.common.IoSession)"><!-- --></A><H3>getDecoder</H3><PRE>public <A HREF="../../../../../../org/apache/mina/filter/codec/ProtocolDecoder.html" title="interface in org.apache.mina.filter.codec">ProtocolDecoder</A> <B>getDecoder</B>(<A HREF="../../../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A>&nbsp;session)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html#getDecoder(org.apache.mina.common.IoSession)">ProtocolCodecFactory</A></CODE></B></DD><DD>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.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html#getDecoder(org.apache.mina.common.IoSession)">getDecoder</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/mina/filter/codec/ProtocolCodecFactory.html" title="interface in org.apache.mina.filter.codec">ProtocolCodecFactory</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getEncoderMaxObjectSize()"><!-- --></A><H3>getEncoderMaxObjectSize</H3><PRE>public int <B>getEncoderMaxObjectSize</B>()</PRE><DL><DD>Returns the allowed maximum size of the encoded object. If the size of the encoded object exceeds this value, the encoder will throw a <A HREF="http://java.sun.com/j2se/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="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true#MAX_VALUE" title="class or interface in java.lang"><CODE>Integer.MAX_VALUE</CODE></A>. <p> This method does the same job with <A HREF="../../../../../../org/apache/mina/filter/codec/serialization/ObjectSerializationEncoder.html#getMaxObjectSize()"><CODE>ObjectSerializationEncoder.getMaxObjectSize()</CODE></A>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setEncoderMaxObjectSize(int)"><!-- --></A><H3>setEncoderMaxObjectSize</H3><PRE>public void <B>setEncoderMaxObjectSize</B>(int&nbsp;maxObjectSize)</PRE><DL><DD>Sets the allowed maximum size of the encoded object. If the size of the encoded object exceeds this value, the encoder will throw a <A HREF="http://java.sun.com/j2se/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="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html?is-external=true#MAX_VALUE" title="class or interface in java.lang"><CODE>Integer.MAX_VALUE</CODE></A>. <p> This method does the same job with <A HREF="../../../../../../org/apache/mina/filter/codec/serialization/ObjectSerializationEncoder.html#setMaxObjectSize(int)"><CODE>ObjectSerializationEncoder.setMaxObjectSize(int)</CODE></A>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDecoderMaxObjectSize()"><!-- --></A><H3>getDecoderMaxObjectSize</H3><PRE>public int <B>getDecoderMaxObjectSize</B>()</PRE><DL><DD>Returns the allowed maximum size of the object to be decoded. If the size of the object to be decoded exceeds this value, the decoder will throw a <A HREF="../../../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common"><CODE>BufferDataException</CODE></A>.  The default value is <tt>1048576</tt> (1MB). <p> This method does the same job with <A HREF="../../../../../../org/apache/mina/filter/codec/serialization/ObjectSerializationDecoder.html#getMaxObjectSize()"><CODE>ObjectSerializationDecoder.getMaxObjectSize()</CODE></A>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setDecoderMaxObjectSize(int)"><!-- --></A><H3>setDecoderMaxObjectSize</H3><PRE>public void <B>setDecoderMaxObjectSize</B>(int&nbsp;maxObjectSize)</PRE><DL><DD>Sets the allowed maximum size of the object to be decoded. If the size of the object to be decoded exceeds this value, the decoder will throw a <A HREF="../../../../../../org/apache/mina/common/BufferDataException.html" title="class in org.apache.mina.common"><CODE>BufferDataException</CODE></A>.  The default value is <tt>1048576</tt> (1MB). <p> This method does the same job with <A HREF="../../../../../../org/apache/mina/filter/codec/serialization/ObjectSerializationDecoder.html#setMaxObjectSize(int)"><CODE>ObjectSerializationDecoder.setMaxObjectSize(int)</CODE></A>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ObjectSerializationCodecFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../../../org/apache/mina/filter/codec/serialization/ObjectSerializationDecoder.html" title="class in org.apache.mina.filter.codec.serialization"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../../index.html?org/apache/mina/filter/codec/serialization/ObjectSerializationCodecFactory.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ObjectSerializationCodecFactory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright 漏 2004-2008 <a href="http://mina.apache.org/">Apache MINA Project</a>. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -