/openjdk10/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ |
H A D | ZipPlugin.java | 118 in.transformAndCopy((resource) -> { 119 ResourcePoolEntry res = resource; 120 if (resource.type().equals(ResourcePoolEntry.Type.CLASS_OR_RESOURCE) 121 && predicate.test(resource.path())) { 123 compressed = compress(resource.contentBytes()); 124 res = ResourcePoolManager.newCompressedResource(resource,
|
H A D | ClassForNamePlugin.java | 59 private static int getAccess(ResourcePoolEntry resource) { argument 60 ClassReader cr = new ClassReader(resource.contentBytes()); 71 private ResourcePoolEntry transform(ResourcePoolEntry resource, ResourcePool pool) { argument 72 byte[] inBytes = resource.contentBytes(); 80 String thisPackage = getPackage(binaryClassName(resource.path())); 101 pool.findEntryInContext(thatClassName + ".class", resource); 132 return resource.copyWithContent(outBytes); 135 return resource; 149 .forEach(resource -> { 150 String path = resource [all...] |
H A D | StringSharingPlugin.java | 231 public byte[] transform(ResourcePoolEntry resource, ResourcePoolBuilder out, argument 233 byte[] content = resource.contentBytes(); 239 + resource.path() + " content.length " + content.length, ex); 242 return optimize(resource, out, strings, scanner.scan(), content); 246 private byte[] optimize(ResourcePoolEntry resource, ResourcePoolBuilder resources, argument 354 in.transformAndCopy((resource) -> { 355 ResourcePoolEntry res = resource; 356 if (predicate.test(resource.path()) && resource.path().endsWith(".class")) { 359 compressed = visit.transform(resource, resul [all...] |
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/spi/db/ |
H A D | MethodSetter.java | 58 final Object resource = (type.isPrimitive() && val == null)? uninitializedValue(type): val; 59 final Object[] args = {resource};
|
H A D | FieldSetter.java | 52 final Object resource = (type.isPrimitive() && val == null)? uninitializedValue(type): val; 54 field.set(instance, resource);
|
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/client/ |
H A D | ClientContainer.java | 40 public URL getResource(String resource) throws MalformedURLException { 45 return cl.getResource("META-INF/"+resource);
|
/openjdk10/jdk/src/java.base/share/classes/com/sun/java/util/jar/pack/ |
H A D | DriverResource_ja.java | 50 private static final Object[][] resource = { field in class:DriverResource_ja 132 return resource;
|
H A D | DriverResource_zh_CN.java | 50 private static final Object[][] resource = { field in class:DriverResource_zh_CN 132 return resource;
|
H A D | DriverResource.java | 50 private static final Object[][] resource = { field in class:DriverResource 132 return resource;
|
/openjdk10/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/plugin/ |
H A D | ResourcePool.java | 38 * Return the module view of this resource pool. 40 * @return a module based view of this resource pool. 112 entries().forEach(resource -> { 113 ResourcePoolEntry res = transform.apply(resource);
|
/openjdk10/jdk/src/java.management/share/classes/com/sun/jmx/mbeanserver/ |
H A D | StandardMBeanSupport.java | 43 * <p>Construct a Standard MBean that wraps the given resource using the 46 * @param resource the underlying resource for the new MBean. 51 * that {@code resource} implements {@code mbeanInterfaceType}, 54 * @throws IllegalArgumentException if {@code resource} is null or 58 public <T> StandardMBeanSupport(T resource, Class<T> mbeanInterfaceType) argument 60 super(resource, mbeanInterfaceType);
|
H A D | PerInterface.java | 69 Object getAttribute(Object resource, String attribute, Object cookie) argument 83 return introspector.invokeM(cm, resource, (Object[]) null, cookie); 86 void setAttribute(Object resource, String attribute, Object value, argument 102 introspector.invokeSetter(attribute, cm, resource, value, cookie); 105 Object invoke(Object resource, String operation, Object[] params, argument 112 return noSuchMethod(msg, resource, operation, params, signature, 135 return noSuchMethod(msg, resource, operation, params, signature, 138 return introspector.invokeM(found.method, resource, params, cookie); 162 private Object noSuchMethod(String msg, Object resource, String operation, argument 211 return introspector.invokeM(method, resource, param [all...] |
/openjdk10/jdk/test/java/lang/ClassLoader/ |
H A D | getdotresource.sh | 46 ${TESTJAVA}/bin/java ${TESTVMOPTS} -cp ${TESTSRC}${FS}resource.jar${PS}${TESTCLASSES} GetDotResource
|
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/jimage/decompressor/ |
H A D | CompressedResourceHeader.java | 34 * A resource header for compressed resource. This class is handled internally, 35 * you don't have to add header to the resource, headers are added automatically 110 byte[] resource) { 112 Objects.requireNonNull(resource); 113 if (resource.length < getSize()) { 116 ByteBuffer buffer = ByteBuffer.wrap(resource, 0, SIZE); 109 readFromResource(ByteOrder order, byte[] resource) argument
|
/openjdk10/jdk/test/tools/jlink/plugins/ |
H A D | ExcludePluginTest.java | 68 // Excluded resource list in a file 81 ResourcePoolEntry resource = ResourcePoolEntry.create(sample, new byte[0]); 82 resourcesMgr.add(resource); 87 if (resPool.contains(resource)) { 91 if (!resPool.contains(resource)) {
|
/openjdk10/jdk/test/javax/swing/text/html/TableView/7030332/ |
H A D | bug7030332.java | 88 URL resource = bug7030332.class.getResource(imageName); 90 result.add(resource == null ? new JLabel(imageName + " not found") : 91 new JLabel(new ImageIcon(resource), SwingConstants.LEFT));
|
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/assembler/ |
H A D | MetroConfigLoader.java | 103 // if spi resource can't load resource, default (MetroConfigUrlLoader) is used; 217 private static URL locateResource(String resource, ResourceLoader loader) { argument 221 return loader.getResource(resource); 223 LOGGER.severe(TubelineassemblyMessages.MASM_0009_CANNOT_FORM_VALID_URL(resource), ex); 228 private static URL locateResource(String resource, ResourceLoader[] loaders) { argument 231 URL url = locateResource(resource, loader); 307 public URL getResource(String resource) throws MalformedURLException { argument 308 LOGGER.entering(resource); 313 LOGGER.fine(TubelineassemblyMessages.MASM_0011_LOADING_RESOURCE(resource, parentLoade 334 loadViaClassLoaders(final String resource) argument 346 tryLoadFromClassLoader(final String resource, final ClassLoader loader) argument 350 loadFromServletContext(String resource) argument [all...] |
/openjdk10/jdk/test/javax/management/modelmbean/ |
H A D | RequiredModelMBeanMethodTest.java | 44 * - A plain operation that is directed to the managed resource in the 54 * RequiredModelMBean operation but is directed to the resource 58 * RequiredModelMBean operation but is directed to the resource 113 storeDescriptor.setField("targetObject", resource); 125 emptyMMB.setManagedResource(resource, "ObjectReference"); 151 fullMMB.setManagedResource(resource, "ObjectReference"); 160 "descriptor directs methods to resource"); 174 if (!resource.loadCalled || !resource.storeCalled) { 176 (resource 334 private static Resource resource = new Resource(); field in class:RequiredModelMBeanMethodTest [all...] |
/openjdk10/jdk/src/java.base/share/classes/sun/net/www/protocol/jrt/ |
H A D | JavaRuntimeURLConnection.java | 59 // the module and resource name in the URL 64 private volatile Resource resource; field in class:JavaRuntimeURLConnection 87 * Finds a resource in a module, returning {@code null} if the resource 110 byte[] resource = reader.getResource(location); 111 return new ByteArrayInputStream(resource); 131 resource = findResource(module, name); 132 if (resource == null) 141 return resource.getInputStream(); 148 return resource [all...] |
/openjdk10/jdk/test/java/lang/module/ |
H A D | MultiReleaseJarTest.java | 89 .resource("p/Main.class") 90 .resource("p/Helper.class") 91 .resource("META-INF/versions/" + VERSION + "/p/Helper.class") 92 .resource("META-INF/versions/" + VERSION + "/p/internal/Helper.class") 132 .resource("p/Main.class") 133 .resource("p/Helper.class") 135 .resource("META-INF/versions/" + VERSION + "/p/Helper.class") 136 .resource("META-INF/versions/" + VERSION + "/p/internal/Helper.class") 162 .resource("p/Main.class") 163 .resource(" 289 JarBuilder resource(String name) { method in class:MultiReleaseJarTest.JarBuilder [all...] |
/openjdk10/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/ |
H A D | ConsoleErrorReporter.java | 78 private void print( String resource, SAXParseException e ) { argument 79 output.println(Messages.format(resource,e.getMessage()));
|
/openjdk10/jdk/src/java.base/share/classes/java/text/ |
H A D | DateFormatSymbols.java | 706 * populates its fields from the resource bundle for the locale, and caches 726 ResourceBundle resource 733 if (resource.containsKey("Eras")) { 734 dfs.eras = resource.getStringArray("Eras"); 735 } else if (resource.containsKey("long.Eras")) { 736 dfs.eras = resource.getStringArray("long.Eras"); 737 } else if (resource.containsKey("short.Eras")) { 738 dfs.eras = resource.getStringArray("short.Eras"); 740 dfs.months = resource.getStringArray("MonthNames"); 741 dfs.shortMonths = resource [all...] |
/openjdk10/jdk/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/keys/keyresolver/implementations/ |
H A D | RetrievalMethodResolver.java | 96 XMLSignatureInput resource = resolveInput(rm, baseURI, secureValidation); 99 X509Certificate cert = getRawCertificate(resource); 105 Element e = obtainReferenceElement(resource); 170 XMLSignatureInput resource = resolveInput(rm, baseURI, secureValidation); 172 return getRawCertificate(resource); 175 Element e = obtainReferenceElement(resource); 268 private static Element obtainReferenceElement(XMLSignatureInput resource) argument 272 if (resource.isElement()){ 273 e = (Element) resource.getSubNode(); 274 } else if (resource 289 getRawCertificate(XMLSignatureInput resource) argument [all...] |
H A D | KeyInfoReferenceResolver.java | 170 XMLSignatureInput resource = resolveInput(uriAttr, baseURI, secureValidation); 174 referentElement = obtainReferenceElement(resource); 233 XMLSignatureInput resource = resRes.resolve(uri, baseURI, secureValidation); 234 return resource; 240 * @param resource 248 private Element obtainReferenceElement(XMLSignatureInput resource) argument 253 if (resource.isElement()){ 254 e = (Element) resource.getSubNode(); 255 } else if (resource.isNodeSet()) { 259 // Retrieved resource i [all...] |
/openjdk10/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ |
H A D | DocFile.java | 159 * Copy the contents of a resource file to this file. 161 * @param resource the path of the resource, relative to the package of this class 168 * @throws ResourceIOException if there is a problem while reading the resource 170 public void copyResource(DocPath resource, boolean overwrite, boolean replaceNewLine) argument 176 InputStream in = BaseConfiguration.class.getResourceAsStream(resource.getPath()); 185 while ((line = readResourceLine(resource, reader)) != null) { 197 while ((n = readResource(resource, in, buf)) > 0) { 208 throw new ResourceIOException(resource, e); 326 * Reads from an input stream opened from a given resource int 335 readResource(DocPath resource, InputStream in, byte[] buf) argument [all...] |