Searched refs:wrap (Results 26 - 50 of 439) sorted by relevance

1234567891011>>

/openjdk10/jdk/test/javax/swing/JTextPane/
H A DJTextPaneDocumentWrapping.java72 SimpleAttributeSet wrap = new SimpleAttributeSet();
73 wrap.addAttribute(CSS.Attribute.WHITE_SPACE, "nowrap");
75 .setParagraphAttributes(0, 10, wrap, true);
/openjdk10/jdk/test/sun/nio/cs/
H A DTestCp834_SBCS.java61 CharBuffer cb = dec933.decode(ByteBuffer.wrap(ba));
64 if (dec834.decode(ByteBuffer.wrap(ba)).get() != '\ufffd')
71 ByteBuffer bb = enc834.encode(CharBuffer.wrap(ca));
H A DTestIBM1364.java166 if (!dec.reset().decode(ByteBuffer.wrap(ba), cb, true).isMalformed() ||
167 !dec.reset().decode(ByteBuffer.wrap(ba), cbd, true).isMalformed())
175 if (!dec.reset().decode(ByteBuffer.wrap(ba), cb, true).isUnmappable() ||
176 !dec.reset().decode(ByteBuffer.wrap(ba), cbd, true).isUnmappable())
183 if (!dec.reset().decode(ByteBuffer.wrap(mixedBytes), cb, true).isOverflow() ||
184 !dec.reset().decode(ByteBuffer.wrap(mixedBytes), cbd, true).isOverflow())
192 .encode(CharBuffer.wrap(mixedStr.toCharArray()), bb, true)
195 .encode(CharBuffer.wrap(mixedStr.toCharArray()), bbd, true)
203 enc.reset().encode(CharBuffer.wrap(mixedStr.toCharArray()), bb, true);
204 enc.reset().encode(CharBuffer.wrap(mixedSt
[all...]
H A DTestIllegalSJIS.java45 CharBuffer cb = dec.decode(ByteBuffer.wrap(sjis));
H A DTestISO2022JPEncoder.java45 CharBuffer cb = CharBuffer.wrap(inputChars);
46 ByteBuffer bb = ByteBuffer.wrap(outputBuff);
/openjdk10/jaxws/src/jdk.xml.bind/share/classes/com/sun/xml/internal/rngom/digested/
H A DDSchemaBuilderImpl.java98 static DPattern wrap( DPattern p, LocatorImpl loc, Annotation anno ) { method in class:DSchemaBuilderImpl
117 return wrap(addAll(new DChoicePattern(),patterns),loc,anno);
121 return wrap(addAll(new DInterleavePattern(),patterns),loc,anno);
125 return wrap(addAll(new DGroupPattern(),patterns),loc,anno);
129 return wrap(addBody(new DOneOrMorePattern(),p,loc),loc,anno);
133 return wrap(addBody(new DZeroOrMorePattern(),p,loc),loc,anno);
137 return wrap(addBody(new DOptionalPattern(),p,loc),loc,anno);
141 return wrap(addBody(new DListPattern(),p,loc),loc,anno);
145 return wrap(addBody(new DMixedPattern(),p,loc),loc,anno);
149 return wrap(ne
[all...]
/openjdk10/jdk/src/java.base/share/classes/javax/net/ssl/
H A DSSLEngine.java103 * wrap() | | | unwrap()
170 * {@code wrap()}, {@code unwrap()}, or
174 * Data moves through the engine by calling {@link #wrap(ByteBuffer,
175 * ByteBuffer) wrap()} or {@link #unwrap(ByteBuffer, ByteBuffer)
177 * the state of the {@code SSLEngine}, a {@code wrap()} call
187 * Calls to {@code wrap()} and {@code unwrap()} return an
194 * calls to {@code wrap()/unwrap()}. Thus input and output
273 * generated by the engine, and {@code wrap()} should be repeatedly
276 * data obtained from the {@code wrap()} method should be sent to the
341 * <li>The {@code wrap()} an
469 public SSLEngineResult wrap(ByteBuffer src, method in class:SSLEngine
506 public SSLEngineResult wrap(ByteBuffer [] srcs, method in class:SSLEngine
590 public abstract SSLEngineResult wrap(ByteBuffer [] srcs, int offset, method in class:SSLEngine
[all...]
/openjdk10/jdk/test/java/nio/file/spi/
H A DTestProvider.java72 return theFileSystem.wrap(path);
133 return theFileSystem.wrap(target);
207 Path wrap(Path path) { method in class:TestProvider.TestFileSystem
262 return wrap(path);
306 return fs.wrap(delegate.getRoot());
311 return fs.wrap(delegate.getParent());
321 return fs.wrap(delegate.getFileName());
326 return fs.wrap(delegate.getName(index));
331 return fs.wrap(delegate.subpath(beginIndex, endIndex));
356 return fs.wrap(delegat
[all...]
/openjdk10/jdk/src/java.security.jgss/share/classes/sun/security/jgss/
H A DGSSManagerImpl.java148 return wrap(new GSSCredentialImpl(this, usage));
154 return wrap(new GSSCredentialImpl(this, aName, lifetime, mech, usage));
160 return wrap(new GSSCredentialImpl(this, aName, lifetime, mechs, usage));
166 return wrap(new GSSContextImpl(this, peer, mech, myCred, lifetime));
171 return wrap(new GSSContextImpl(this, myCred));
176 return wrap(new GSSContextImpl(this, interProcessToken));
269 static GSSCredential wrap(GSSCredentialImpl cred) { method in class:GSSManagerImpl
270 return sun.security.jgss.JgssExtender.getExtender().wrap(cred);
273 static GSSContext wrap(GSSContextImpl ctxt) { method in class:GSSManagerImpl
274 return sun.security.jgss.JgssExtender.getExtender().wrap(ctx
[all...]
/openjdk10/jdk/test/java/nio/file/Files/
H A DPassThroughFileSystem.java276 private DirectoryStream<Path> wrap(final DirectoryStream<Path> stream) { method in class:PassThroughFileSystem.PassThroughProvider
307 return wrap(Files.newDirectoryStream(unwrap(dir), filter));
366 private Path wrap(Path path) { method in class:PassThroughFileSystem.PassThroughPath
382 return wrap(delegate.getRoot());
387 return wrap(delegate.getParent());
397 return wrap(delegate.getFileName());
402 return wrap(delegate.getName(index));
407 return wrap(delegate.subpath(beginIndex, endIndex));
432 return wrap(delegate.normalize());
437 return wrap(delegat
[all...]
/openjdk10/jdk/test/javax/net/ssl/TLSCommon/
H A DBufferOverflowUnderflowTest.java70 + " on wrap by " + mode);
71 ByteBuffer app = ByteBuffer.wrap(MESSAGE.getBytes());
75 SSLEngineResult r = engine.wrap(app, net);
94 ByteBuffer app = ByteBuffer.wrap(MESSAGE.getBytes());
97 SSLEngineResult r = wrappingEngine.wrap(app, net);
121 ByteBuffer app = ByteBuffer.wrap(MESSAGE.getBytes());
124 SSLEngineResult r = wrappingEngine.wrap(app, net);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DKeyWrapping.java46 // wrap and unwrap the session key
52 byte[] wrappedKey = c1.wrap(sessionKey);
83 byte[] wrappedPub = c1.wrap(pub);
84 byte[] wrappedPri = c1.wrap(pri);
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/pipe/
H A DEngine.java59 this.threadPool = threadPool != null ? wrap(threadPool) : null;
72 this.threadPool = threadPool != null ? wrap(threadPool) : null;
78 threadPool = wrap(Executors.newCachedThreadPool(new DaemonThreadFactory()));
84 private Executor wrap(Executor ex) { method in class:Engine
/openjdk10/jdk/test/com/sun/crypto/provider/Mac/
H A DEmptyByteBufferTest.java59 ByteBuffer buf = ByteBuffer.wrap(data);
/openjdk10/jdk/test/java/nio/charset/RemovingSunIO/
H A DTestUnmappableForLength.java50 .decode(ByteBuffer.wrap(ba), CharBuffer.allocate(4), true);
/openjdk10/jdk/test/javax/crypto/NullCipher/
H A DTestWithoutInit.java53 // try calling wrap() and unwrap() directly
56 ci.wrap(key);
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/jaxp/datatype/
H A DDurationYearMonthImpl.java98 wrap(years),
99 wrap(months));
/openjdk10/jdk/src/java.base/share/classes/sun/nio/fs/
H A DAbstractUserDefinedFileAttributeView.java68 bb = ByteBuffer.wrap((byte[])value);
97 int n = read(name, ByteBuffer.wrap(buf));
/openjdk10/jdk/test/com/oracle/security/ucrypto/
H A DTestGCMKeyWrap.java27 * @summary Ensure key wrap/unwrap works using AES/GCM/NoPadding
63 byte[] wrappedKey = cipher.wrap(key);
66 wrappedKey = cipher.wrap(key);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/AEAD/
H A DKeyWrapper.java62 // wrap the key
63 byte[] keyWrapper = cipher.wrap(keyToWrap);
65 // check if we can't wrap it again with the same key/IV
66 keyWrapper = cipher.wrap(keyToWrap);
/openjdk10/jdk/test/java/nio/charset/CharsetEncoder/
H A DCanEncode.java58 if (ce.canEncode(CharBuffer.wrap(s.toCharArray())) != can)
60 if (ce.canEncode(CharBuffer.wrap(s)) != can)
/openjdk10/jdk/test/javax/net/ssl/SSLEngine/
H A DIllegalRecordVersion.java57 ByteBuffer cliOBuff = ByteBuffer.wrap("I'm client".getBytes());
61 SSLEngineResult cliRes = cliEngine.wrap(cliOBuff, cliToSrv);
62 System.out.println("Client wrap result: " + cliRes);
H A DBasics.java170 /* Checking for overflow wrap/unwrap() */
173 if (ssle.wrap(smallBB, smallBB).getStatus() !=
175 throw new Exception("wrap should have overflowed");
181 // BUFFER_OVERFLOW/UNDERFLOW for both wrap() and unwrap().
199 if (ssle.wrap(appBB, netBB).getHandshakeStatus() !=
204 /* Checking for overflow wrap/unwrap() */
206 if (ssle.wrap(appBB, netBB).getStatus() !=
213 System.out.println("checking for wrap/unwrap on RO Buffers");
215 ssle.wrap(netBB, ro);
216 throw new Exception("wrap was
[all...]
/openjdk10/jdk/test/sun/security/ssl/SSLEngineImpl/
H A DEngineEnforceUseClientMode.java104 System.out.println("Testing wrap()");
105 ssle3.wrap(appOut1, oneToTwo);
107 "wrap(): Didn't catch the exception properly");
110 ssle3.wrap(appOut1, oneToTwo);
125 ssle4.wrap(appOut1, oneToTwo);
140 ssle5.wrap(appOut1, oneToTwo);
157 result1 = ssle1.wrap(appOut1, oneToTwo);
158 result2 = ssle2.wrap(appOut2, twoToOne);
279 appOut1 = ByteBuffer.wrap("Hi Engine2, I'm SSLEngine1".getBytes());
280 appOut2 = ByteBuffer.wrap("Hell
[all...]
/openjdk10/jdk/test/java/net/httpclient/http2/jdk.incubator.httpclient/jdk/incubator/http/internal/hpack/
H A DDecoderTest.java406 d.decode(ByteBuffer.wrap(new byte[]{0b00111110}), true, nopCallback()); // newSize = 30
444 ByteBuffer data = ByteBuffer.wrap(new byte[]{
464 ByteBuffer data = ByteBuffer.wrap(new byte[]{
483 ByteBuffer data = ByteBuffer.wrap(new byte[]{
502 ByteBuffer data = ByteBuffer.wrap(new byte[]{
520 ByteBuffer data = ByteBuffer.wrap(new byte[]{
543 ByteBuffer data = ByteBuffer.wrap(new byte[]{
562 ByteBuffer data = ByteBuffer.wrap(new byte[]{
578 ByteBuffer data = ByteBuffer.wrap(new byte[]{
594 ByteBuffer data = ByteBuffer.wrap(ne
[all...]

Completed in 243 milliseconds

1234567891011>>