Home
last modified time | relevance | path

Searched refs:baos (Results 1 – 24 of 24) sorted by relevance

/titanic_44/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSDAAdvert.java125 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local
131 putInt32(hdr, timestamp, baos); in initialize()
132 byte[] timestampBytes = baos.toByteArray(); in initialize()
136 byte[] urlBytes = hdr.putString(surl, baos); in initialize()
141 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
149 baos, in initialize()
168 byte[] spiBytes = hdr.putString(spisString, baos); in initialize()
205 baos.write((byte)(auth.size() & 0xFF)); // auth block count in initialize()
207 AuthBlock.externalizeAll(hdr, auth, baos); in initialize()
211 baos.write((byte)0); in initialize()
[all …]
H A DSrvLocHeader.java235 externalize(ByteArrayOutputStream baos, in externalize() argument
344 void putInt(int z, ByteArrayOutputStream baos) { in putInt() argument
346 putInteger(z, baos); in putInt()
354 static void putInteger(int z, ByteArrayOutputStream baos) { in putInteger() argument
355 baos.write((byte) ((0xFF00 & z)>>8)); in putInteger()
356 baos.write((byte) (0xFF & z)); in putInteger()
381 protected void putInt24(int z, ByteArrayOutputStream baos) { in putInt24() argument
382 baos.write((byte) ((0xFF0000 & z) >> 16)); in putInt24()
383 baos.write((byte) ((0xFF00 & z)>>8)); in putInt24()
384 baos.write((byte) (0xFF & z)); in putInt24()
[all …]
H A DSLPHeaderV2.java114 abstract void externalize(SLPHeaderV2 hdr, ByteArrayOutputStream baos) in externalize() argument
332 externalize(ByteArrayOutputStream baos, boolean mcast, boolean isTCP) in externalize() argument
434 baos.write((byte) (0xFF & version)); in externalize()
435 baos.write((byte) (0xFF & functionCode)); in externalize()
439 putInt24(length, baos); in externalize()
465 baos.write((byte) (0xFF & flags)); in externalize()
466 baos.write((byte)0); in externalize()
468 putInt24(optOff, baos); // write option offset, if any. in externalize()
470 putInt(xid, baos); // write xid. in externalize()
472 putInt(ltagLen, baos); // write lang size. in externalize()
[all …]
H A DCSrvTypeMsg.java143 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in CSrvTypeMsg() local
147 parseNamingAuthorityOut(hdr, namingAuthority, baos); in CSrvTypeMsg()
155 hdr.parseCommaSeparatedListOut(scopes, baos); in CSrvTypeMsg()
157 hdr.payload = baos.toByteArray(); in CSrvTypeMsg()
166 ByteArrayOutputStream baos) { in parseNamingAuthorityOut() argument
171 hdr.putInt(0, baos); in parseNamingAuthorityOut()
174 hdr.putInt(0xFFFF, baos); in parseNamingAuthorityOut()
177 hdr.putString(name, baos); in parseNamingAuthorityOut()
H A DSLPHeaderV1.java243 externalize(ByteArrayOutputStream baos, boolean mcast, boolean isTCP) in externalize() argument
288 baos.write((byte) (0xFF & version)); in externalize()
290 baos.write((byte) (0xFF & functionCode)); in externalize()
295 putInt(length, baos); // what about overflow??? in externalize()
317 baos.write((byte) (0xFF & flags)); in externalize()
319 baos.write((byte) (0xFF & 0)); // dialect... in externalize()
324 baos.write((byte) (0xFF & language.charAt(0))); in externalize()
325 baos.write((byte) (0xFF & language.charAt(1))); in externalize()
340 putInt(intCharCode, baos); in externalize()
341 putInt(xid, baos); in externalize()
[all …]
H A DSSrvMsg.java158 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local
166 hdr.putInt(n, baos); in makeReply()
200 baos, in makeReply()
210 byte[] bytes = baos.toByteArray(); in makeReply()
211 baos.reset(); in makeReply()
212 SrvLocHeader.putInteger(nurls, baos); in makeReply()
213 baos.write(bytes, 2, bytes.length - 2); in makeReply()
222 hdr.payload = baos.toByteArray(); in makeReply()
H A DSSAAdvert.java104 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local
110 byte[] urlBytes = hdr.putString(surl, baos); in initialize()
116 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
124 baos, in initialize()
159 baos.write(nBlocks); in initialize()
165 AuthBlock.externalizeAll(hdr, auth, baos); in initialize()
171 hdr.payload = baos.toByteArray(); in initialize()
H A DCSrvReg.java123 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local
130 baos, in initialize()
138 hdr.putString(serviceType.toString(), baos); in initialize() local
146 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
154 baos, in initialize()
157 hdr.payload = baos.toByteArray(); in initialize()
H A DCAttrMsg.java133 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in constructPayload() local
137 hdr.putString(typeOrURL, baos); in constructPayload()
145 hdr.parseCommaSeparatedListOut(scopes, baos); in constructPayload()
153 hdr.parseCommaSeparatedListOut(tags, baos); in constructPayload()
165 hdr.putString(spi, baos); in constructPayload()
169 hdr.payload = baos.toByteArray(); in constructPayload()
H A DCSrvDereg.java99 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local
107 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
114 baos, in initialize()
119 hdr.parseCommaSeparatedListOut(tags, baos); in initialize()
121 hdr.payload = baos.toByteArray(); in initialize()
H A DCSrvMsg.java142 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local
160 hdr.putString(serviceType.toString(), baos); in initialize() local
164 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
168 hdr.putString(query, baos); in initialize()
172 hdr.putString(spi, baos); in initialize()
174 hdr.payload = baos.toByteArray(); in initialize()
H A DSLPV1SDAAdvert.java98 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local
102 hdr.parseServiceURLOut(url, false, baos); in initialize()
106 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize()
108 hdr.payload = baos.toByteArray(); in initialize()
H A DAuthBlock.java201 ByteArrayOutputStream baos) in externalizeAll() argument
210 ab.externalize(hdr, baos); in externalizeAll()
691 void externalize(SrvLocHeader hdr, ByteArrayOutputStream baos)
695 Assert.nonNullParameter(baos, "baos");
698 hdr.putInt(bsd, baos);
701 hdr.putInt(abLength, baos);
704 putInt32(timeStamp, baos);
708 hdr.putString(spi, baos);
711 baos.write(abBytes, 0, abBytes.length);
855 static private void putInt32(long i, ByteArrayOutputStream baos) {
[all …]
H A DSLPV1SSrvTypeMsg.java120 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local
138 hdr.putStringVector(typeNames, baos); in makeReply()
140 hdr.payload = baos.toByteArray(); in makeReply()
H A DSSrvTypeMsg.java153 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local
155 hdr.parseCommaSeparatedListOut(typeNames, baos); in makeReply()
157 hdr.payload = baos.toByteArray(); in makeReply()
H A DSAttrMsg.java159 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local
162 auth, baos, true); in makeReply()
164 hdr.payload = baos.toByteArray(); in makeReply()
H A DDAAdvertiser.java140 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in DAAdvertiser() local
142 hdr.externalize(baos, true, false); in DAAdvertiser()
143 outbuf = baos.toByteArray(); in DAAdvertiser()
H A DRequestHandler.java281 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in run() local
285 handleRequest(dis, baos, false); in run()
287 byte[] outbuf = baos.toByteArray(); in run()
362 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in handleStream() local
364 boolean parseError = handleRequest(dis, baos, true); in handleStream()
366 dos.write(baos.toByteArray(), 0, baos.size()); in handleStream()
504 ByteArrayOutputStream baos, in handleRequest() argument
598 hdr.externalize(baos, false, isTCP); in handleRequest()
613 baos.reset(); in handleRequest()
623 hdr.externalize(baos, false, isTCP); in handleRequest()
H A DSLPV1Manager.java161 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getOutbuf() local
163 hdr.externalize(baos, true, false); in getOutbuf()
164 byte[] outbuf = baos.toByteArray(); in getOutbuf()
H A DSLPV1SAttrMsg.java224 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local
226 hdr.parseAttributeVectorOut(attrs, baos); // attributes in makeReply()
228 hdr.payload = baos.toByteArray(); in makeReply()
H A DIANACharCode.java162 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in escapeChar() local
165 OutputStreamWriter osw = new OutputStreamWriter(baos, encoding); in escapeChar()
182 byte b[] = baos.toByteArray(); in escapeChar()
H A DSLPV1SSrvMsg.java253 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local
280 hdr.putInt(n, baos); in makeReply()
289 hdr.parseServiceURLOut(surl, true, baos); in makeReply()
296 hdr.payload = baos.toByteArray(); in makeReply()
H A DTransact.java692 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getBytes() local
695 hdr.externalize(baos, isMulti, isTCP); in getBytes()
697 byte[] outbuf = baos.toByteArray(); in getBytes()
1165 ByteArrayOutputStream baos = null; in transactConvergeMsg() local
H A DServiceTable.java316 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in registerStore() local
318 creg.getHeader().externalize(baos, false, true); in registerStore()
321 new ByteArrayInputStream(baos.toByteArray()); in registerStore()