Debian Codegraph @

docs/java/com/sleepycat/bind/ByteArrayBinding.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_51) on Mon Sep 09 11:47:05 EDT 2013 -->
6 <TITLE>
7 ByteArrayBinding (Oracle - Berkeley DB Java API)
8 </TITLE>
9
10 <META NAME="date" CONTENT="2013-09-09">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="ByteArrayBinding (Oracle - Berkeley DB Java API)";
19 }
20 }
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
24
25 </HEAD>
26
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
29
30
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35 <TR>
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ByteArrayBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48 </TR>
49 </TABLE>
50 </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
53 </TD>
54 </TR>
55
56 <TR>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 &nbsp;PREV CLASS&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/bind/EntityBinding.html" title="interface in com.sleepycat.bind"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../../index.html?com/sleepycat/bind/ByteArrayBinding.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="ByteArrayBinding.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
63 &nbsp;<SCRIPT type="text/javascript">
64 <!--
65 if(window==top) {
66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 }
68 //-->
69 </SCRIPT>
70 <NOSCRIPT>
71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
72 </NOSCRIPT>
73
74
75 </FONT></TD>
76 </TR>
77 <TR>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82 </TR>
83 </TABLE>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
86
87 <HR>
88 <!-- ======== START OF CLASS DATA ======== -->
89 <H2>
90 <FONT SIZE="-1">
91 com.sleepycat.bind</FONT>
92 <BR>
93 Class ByteArrayBinding</H2>
94 <PRE>
95 <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>
96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.bind.ByteArrayBinding</B>
97 </PRE>
98 <DL>
99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A>&lt;byte[]&gt;</DD>
100 </DL>
101 <HR>
102 <DL>
103 <DT><PRE>public class <B>ByteArrayBinding</B><DT>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><DT>implements <A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A>&lt;byte[]&gt;</DL>
104 </PRE>
105
106 <P>
107 A pass-through <code>EntryBinding</code> that uses the entry's byte array as
108 the key or data object.
109 <P>
110
111 <P>
112 <HR>
113
114 <P>
115
116 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
117
118 <A NAME="constructor_summary"><!-- --></A>
119 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
122 <B>Constructor Summary</B></FONT></TH>
123 </TR>
124 <TR BGCOLOR="white" CLASS="TableRowColor">
125 <TD><CODE><B><A HREF="../../../com/sleepycat/bind/ByteArrayBinding.html#ByteArrayBinding()">ByteArrayBinding</A></B>()</CODE>
126
127 <BR>
128 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a byte array binding.</TD>
129 </TR>
130 </TABLE>
131 &nbsp;
132 <!-- ========== METHOD SUMMARY =========== -->
133
134 <A NAME="method_summary"><!-- --></A>
135 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
137 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
138 <B>Method Summary</B></FONT></TH>
139 </TR>
140 <TR BGCOLOR="white" CLASS="TableRowColor">
141 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142 <CODE>&nbsp;byte[]</CODE></FONT></TD>
143 <TD><CODE><B><A HREF="../../../com/sleepycat/bind/ByteArrayBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">entryToObject</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</CODE>
144
145 <BR>
146 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a entry buffer into an Object.</TD>
147 </TR>
148 <TR BGCOLOR="white" CLASS="TableRowColor">
149 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150 <CODE>&nbsp;void</CODE></FONT></TD>
151 <TD><CODE><B><A HREF="../../../com/sleepycat/bind/ByteArrayBinding.html#objectToEntry(byte[], com.sleepycat.db.DatabaseEntry)">objectToEntry</A></B>(byte[]&nbsp;object,
152 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</CODE>
153
154 <BR>
155 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts an Object into a entry buffer.</TD>
156 </TR>
157 </TABLE>
158 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
159 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
160 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
161 <TH ALIGN="left"><B>Methods inherited from class 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></B></TH>
162 </TR>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD><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></TD>
165 </TR>
166 </TABLE>
167 &nbsp;
168 <P>
169
170 <!-- ========= CONSTRUCTOR DETAIL ======== -->
171
172 <A NAME="constructor_detail"><!-- --></A>
173 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
174 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
175 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
176 <B>Constructor Detail</B></FONT></TH>
177 </TR>
178 </TABLE>
179
180 <A NAME="ByteArrayBinding()"><!-- --></A><H3>
181 ByteArrayBinding</H3>
182 <PRE>
183 public <B>ByteArrayBinding</B>()</PRE>
184 <DL>
185 <DD>Creates a byte array binding.
186 <P>
187 </DL>
188
189 <!-- ============ METHOD DETAIL ========== -->
190
191 <A NAME="method_detail"><!-- --></A>
192 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
193 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
194 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
195 <B>Method Detail</B></FONT></TH>
196 </TR>
197 </TABLE>
198
199 <A NAME="entryToObject(com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3>
200 entryToObject</H3>
201 <PRE>
202 public byte[] <B>entryToObject</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</PRE>
203 <DL>
204 <DD><B>Description copied from interface: <CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">EntryBinding</A></CODE></B></DD>
205 <DD>Converts a entry buffer into an Object.
206 <P>
207 <DD><DL>
208 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">entryToObject</A></CODE> in interface <CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A>&lt;byte[]&gt;</CODE></DL>
209 </DD>
210 <DD><DL>
211 <DT><B>Parameters:</B><DD><CODE>entry</CODE> - is the source entry buffer.
212 <DT><B>Returns:</B><DD>the resulting Object.</DL>
213 </DD>
214 </DL>
215 <HR>
216
217 <A NAME="objectToEntry(byte[], com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3>
218 objectToEntry</H3>
219 <PRE>
220 public void <B>objectToEntry</B>(byte[]&nbsp;object,
221 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</PRE>
222 <DL>
223 <DD><B>Description copied from interface: <CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html#objectToEntry(E, com.sleepycat.db.DatabaseEntry)">EntryBinding</A></CODE></B></DD>
224 <DD>Converts an Object into a entry buffer.
225 <P>
226 <DD><DL>
227 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html#objectToEntry(E, com.sleepycat.db.DatabaseEntry)">objectToEntry</A></CODE> in interface <CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A>&lt;byte[]&gt;</CODE></DL>
228 </DD>
229 <DD><DL>
230 <DT><B>Parameters:</B><DD><CODE>object</CODE> - is the source Object.<DD><CODE>entry</CODE> - is the destination entry buffer.</DL>
231 </DD>
232 </DL>
233 <!-- ========= END OF CLASS DATA ========= -->
234 <HR>
235
236
237 <!-- ======= START OF BOTTOM NAVBAR ====== -->
238 <A NAME="navbar_bottom"><!-- --></A>
239 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
240 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
241 <TR>
242 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
243 <A NAME="navbar_bottom_firstrow"><!-- --></A>
244 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
245 <TR ALIGN="center" VALIGN="top">
246 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
247 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
248 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
249 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ByteArrayBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
250 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
251 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
252 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
253 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
254 </TR>
255 </TABLE>
256 </TD>
257 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
258 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
259 </TD>
260 </TR>
261
262 <TR>
263 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
264 &nbsp;PREV CLASS&nbsp;
265 &nbsp;<A HREF="../../../com/sleepycat/bind/EntityBinding.html" title="interface in com.sleepycat.bind"><B>NEXT CLASS</B></A></FONT></TD>
266 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
267 <A HREF="../../../index.html?com/sleepycat/bind/ByteArrayBinding.html" target="_top"><B>FRAMES</B></A> &nbsp;
268 &nbsp;<A HREF="ByteArrayBinding.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
269 &nbsp;<SCRIPT type="text/javascript">
270 <!--
271 if(window==top) {
272 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
273 }
274 //-->
275 </SCRIPT>
276 <NOSCRIPT>
277 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
278 </NOSCRIPT>
279
280
281 </FONT></TD>
282 </TR>
283 <TR>
284 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
285 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
286 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
287 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
288 </TR>
289 </TABLE>
290 <A NAME="skip-navbar_bottom"></A>
291 <!-- ======== END OF BOTTOM NAVBAR ======= -->
292
293 <HR>
294 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
295 </BODY>
296 </HTML>