/usr/share/doc/libgluegen2-java/com/jogamp/common/util/IOUtil.html is in libgluegen2-doc 2.2.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_65) on Fri Nov 14 22:00:48 UTC 2014 -->
<title>IOUtil (GlueGen Runtime Documentation)</title>
<meta name="date" content="2014-11-14">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="IOUtil (GlueGen Runtime Documentation)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/jogamp/common/util/IntObjectHashMap.Entry.html" title="class in com.jogamp.common.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/jogamp/common/util/IOUtil.ClassResources.html" title="class in com.jogamp.common.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/jogamp/common/util/IOUtil.html" target="_top">Frames</a></li>
<li><a href="IOUtil.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_class_summary">Nested</a> | </li>
<li><a href="#field_summary">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.jogamp.common.util</div>
<h2 title="Class IOUtil" class="title">Class IOUtil</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.jogamp.common.util.IOUtil</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">IOUtil</span>
extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class </code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.ClassResources.html" title="class in com.jogamp.common.util">IOUtil.ClassResources</a></strong></code>
<div class="block">Helper compound associating a class instance and resource paths
to be <a href="../../../../com/jogamp/common/util/IOUtil.ClassResources.html#resolve(int)"><code>resolved</code></a> at a later time.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class </code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.StreamMonitor.html" title="class in com.jogamp.common.util">IOUtil.StreamMonitor</a></strong></code> </td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#DEBUG">DEBUG</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#FILE_SCHEME">FILE_SCHEME</a></strong></code>
<div class="block">"file"</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#HTTP_SCHEME">HTTP_SCHEME</a></strong></code>
<div class="block">"http"</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#HTTPS_SCHEME">HTTPS_SCHEME</a></strong></code>
<div class="block">"https"</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#JAR_SCHEME">JAR_SCHEME</a></strong></code>
<div class="block">"jar"</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#JAR_SCHEME_SEPARATOR">JAR_SCHEME_SEPARATOR</a></strong></code>
<div class="block">A JAR subprotocol is separeted from the JAR entry w/ this separator 33.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#SCHEME_SEPARATOR">SCHEME_SEPARATOR</a></strong></code>
<div class="block">":"</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#tmpSubDir">tmpSubDir</a></strong></code>
<div class="block">Subdirectory within platform's temporary root directory where all JogAmp related temp files are being stored: <code>jogamp</code></div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#cleanPathString(java.lang.String)">cleanPathString</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#close(java.io.Closeable,%20boolean)">close</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a> stream,
boolean throwRuntimeException)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#compose(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)">compose</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> scheme,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> schemeSpecificPart,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relativePath,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fragment)</code>
<div class="block">Generates a URI for the <i>relativePath</i> relative to the <i>schemeSpecificPart</i>,
hence the result is a absolute location.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#copyStream2ByteArray(java.io.InputStream)">copyStream2ByteArray</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream)</code>
<div class="block">Copy the specified input stream to a byte array, which is being returned.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#copyStream2ByteBuffer(java.io.InputStream)">copyStream2ByteBuffer</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream)</code>
<div class="block">Copy the specified input stream to a NIO ByteBuffer w/ native byte order, which is being returned.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#copyStream2ByteBuffer(java.io.InputStream,%20int)">copyStream2ByteBuffer</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream,
int initialCapacity)</code>
<div class="block">Copy the specified input stream to a NIO ByteBuffer w/ native byte order, which is being returned.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#copyStream2File(java.io.InputStream,%20java.io.File,%20int)">copyStream2File</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> outFile,
int totalNumBytes)</code>
<div class="block">Copy the specified input stream to the specified output file.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#copyStream2Stream(java.io.InputStream,%20java.io.OutputStream,%20int)">copyStream2Stream</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out,
int totalNumBytes)</code>
<div class="block">Copy the specified input stream to the specified output stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#copyStream2Stream(int,%20java.io.InputStream,%20java.io.OutputStream,%20int)">copyStream2Stream</a></strong>(int bufferSize,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out,
int totalNumBytes)</code>
<div class="block">Copy the specified input stream to the specified output stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#copyURLConn2File(java.net.URLConnection,%20java.io.File)">copyURLConn2File</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a> conn,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> outFile)</code>
<div class="block">Copy the specified URL resource to the specified output file.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#createTempFile(java.lang.String,%20java.lang.String,%20boolean)">createTempFile</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> prefix,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> suffix,
boolean executable)</code>
<div class="block">Utilizing <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File)" title="class or interface in java.io"><code>File.createTempFile(String, String, File)</code></a> using
<a href="../../../../com/jogamp/common/util/IOUtil.html#getTempDir(boolean)"><code>getTempDir(boolean)</code></a> as the directory parameter, ie.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#decodeFromURI(java.lang.String)">decodeFromURI</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encodedUri)</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Use <a href="../../../../com/jogamp/common/util/IOUtil.html#decodeURIIfFilePath(java.net.URI)"><code>decodeURIIfFilePath(URI)</code></a></i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#decodeURIIfFilePath(java.net.URI)">decodeURIIfFilePath</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> uri)</code>
<div class="block">If <code>uri</code> is a <i>file scheme</i>,
implementation completes space-decoding <i>[ "//"+<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true#getAuthority()" title="class or interface in java.net"><code>URI.getAuthority()</code></a> ] + <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true#getPath()" title="class or interface in java.net"><code>URI.getPath()</code></a></i>.<br>
Then it processes the <code>path</code> if <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true#separatorChar" title="class or interface in java.io"><code>File.separatorChar</code></a> <code> == '\\'</code>
as follows:
slash -> backslash
drop a starting single backslash, preserving windows UNC
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#decodeURIToFilePath(java.lang.String)">decodeURIToFilePath</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encodedUriPath)</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Use <a href="../../../../com/jogamp/common/util/IOUtil.html#decodeURIIfFilePath(java.net.URI)"><code>decodeURIIfFilePath(URI)</code></a></i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#encodeFilePathToURI(java.lang.String)">encodeFilePathToURI</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filePath)</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Useless</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#encodeToURI(java.lang.String)">encodeToURI</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> vanilla)</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Useless</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getBasename(java.lang.String)">getBasename</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fname)</code>
<div class="block">Returns the basename of the given fname w/o directory part</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getClassFileName(java.lang.String)">getClassFileName</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazzBinName)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getClassURL(java.lang.String,%20java.lang.ClassLoader)">getClassURL</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazzBinName,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> cl)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getDirname(java.lang.String)">getDirname</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fname)</code>
<div class="block">Returns unified '/' dirname including the last '/'</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/io/FileOutputStream.html?is-external=true" title="class or interface in java.io">FileOutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getFileOutputStream(java.io.File,%20boolean)">getFileOutputStream</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file,
boolean allowOverwrite)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getFileSuffix(java.io.File)">getFileSuffix</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file)</code>
<div class="block">Returns the lowercase suffix of the given file name (the text
after the last '.' in the file name).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getFileSuffix(java.lang.String)">getFileSuffix</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filename)</code>
<div class="block">Returns the lowercase suffix of the given file name (the text
after the last '.' in the file name).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getParentOf(java.lang.String)">getParentOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getRelativeOf(java.io.File,%20java.lang.String)">getRelativeOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> baseLocation,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relativeFile)</code>
<div class="block">Generates a path for the 'relativeFile' relative to the 'baseLocation'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getRelativeOf(java.net.URI,%20java.lang.String)">getRelativeOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> baseURI,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relativePath)</code>
<div class="block">Generates a URI for the <i>relativePath</i> relative to the <i>baseURI</i>,
hence the result is a absolute location.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getRelativeOf(java.net.URL,%20java.lang.String)">getRelativeOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> baseURL,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relativePath)</code>
<div class="block">Wraps <a href="../../../../com/jogamp/common/util/IOUtil.html#getRelativeOf(java.net.URI,%20java.lang.String)"><code>getRelativeOf(URI, String)</code></a> for convenience.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getResource(java.lang.Class,%20java.lang.String)">getResource</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> context,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> resourcePath)</code>
<div class="block">Locating a resource using <a href="../../../../com/jogamp/common/util/IOUtil.html#getResource(java.lang.String,%20java.lang.ClassLoader)"><code>getResource(String, ClassLoader)</code></a>:
<i>relative</i>: <code>context</code>'s package name-path plus <code>resourcePath</code> via <code>context</code>'s ClassLoader.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getResource(java.lang.String,%20java.lang.ClassLoader)">getResource</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> resourcePath,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> cl)</code>
<div class="block">Locating a resource using the ClassLoader's facilities.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getTempDir(boolean)">getTempDir</a></strong>(boolean executable)</code>
<div class="block">Returns a platform independent writable directory for temporary files
consisting of the platform's <code>temp-root</code> + <a href="../../../../com/jogamp/common/util/IOUtil.html#tmpSubDir"><code>tmpSubDir</code></a>,
e.g.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getURIDirname(java.lang.String)">getURIDirname</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> uriS)</code>
<div class="block">The URI's <code><i>protocol</i>:/some/path/gluegen-rt.jar</code>
parent dirname URI <code><i>protocol</i>:/some/path/</code> will be returned.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#getURIDirname(java.net.URI)">getURIDirname</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> uri)</code>
<div class="block">The URI's <code><i>protocol</i>:/some/path/gluegen-rt.jar</code>
parent dirname URI <code><i>protocol</i>:/some/path/</code> will be returned.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#openURL(java.net.URL)">openURL</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url)</code>
<div class="block">Returns the connected URLConnection, or null if not url is not available</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#openURL(java.net.URL,%20java.lang.String)">openURL</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> dbgmsg)</code>
<div class="block">Returns the connected URLConnection, or null if not url is not available</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#slashify(java.lang.String,%20boolean,%20boolean)">slashify</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path,
boolean startWithSlash,
boolean endWithSlash)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#testDir(java.io.File,%20boolean,%20boolean)">testDir</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> dir,
boolean create,
boolean executable)</code>
<div class="block">Returns the directory <code>dir</code>, which is processed and tested as described below.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#testDirExec(java.io.File)">testDirExec</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> dir)</code>
<div class="block">Returns true if the given <code>dir</code>
exists, and
is a directory, and
is writeable, and
files can be executed from the directory
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#testFile(java.io.File,%20boolean,%20boolean)">testFile</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file,
boolean shallBeDir,
boolean shallBeWritable)</code>
<div class="block">Test whether <code>file</code> exists and matches the given requirements</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#toURISimple(java.io.File)">toURISimple</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file)</code>
<div class="block">Using the simple conversion via File -> URI, assuming proper characters.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#toURISimple(java.lang.String,%20java.lang.String,%20boolean)">toURISimple</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> protocol,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path,
boolean isDirectory)</code>
<div class="block">Using the simple conversion via File -> URI, assuming proper characters.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/jogamp/common/util/IOUtil.html#toURL(java.net.URI)">toURL</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> uri)</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Useless</i></div>
</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/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://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="DEBUG">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEBUG</h4>
<pre>public static final boolean DEBUG</pre>
</li>
</ul>
<a name="SCHEME_SEPARATOR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SCHEME_SEPARATOR</h4>
<pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> SCHEME_SEPARATOR</pre>
<div class="block">":"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.jogamp.common.util.IOUtil.SCHEME_SEPARATOR">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FILE_SCHEME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FILE_SCHEME</h4>
<pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> FILE_SCHEME</pre>
<div class="block">"file"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.jogamp.common.util.IOUtil.FILE_SCHEME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="HTTP_SCHEME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTTP_SCHEME</h4>
<pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> HTTP_SCHEME</pre>
<div class="block">"http"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.jogamp.common.util.IOUtil.HTTP_SCHEME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="HTTPS_SCHEME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTTPS_SCHEME</h4>
<pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> HTTPS_SCHEME</pre>
<div class="block">"https"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.jogamp.common.util.IOUtil.HTTPS_SCHEME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="JAR_SCHEME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JAR_SCHEME</h4>
<pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> JAR_SCHEME</pre>
<div class="block">"jar"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.jogamp.common.util.IOUtil.JAR_SCHEME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="JAR_SCHEME_SEPARATOR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JAR_SCHEME_SEPARATOR</h4>
<pre>public static final char JAR_SCHEME_SEPARATOR</pre>
<div class="block">A JAR subprotocol is separeted from the JAR entry w/ this separator 33. Even if no class is specified '!/' must follow!.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.jogamp.common.util.IOUtil.JAR_SCHEME_SEPARATOR">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="tmpSubDir">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>tmpSubDir</h4>
<pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tmpSubDir</pre>
<div class="block">Subdirectory within platform's temporary root directory where all JogAmp related temp files are being stored: <code>jogamp</code></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.jogamp.common.util.IOUtil.tmpSubDir">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="copyURLConn2File(java.net.URLConnection, java.io.File)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyURLConn2File</h4>
<pre>public static int copyURLConn2File(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a> conn,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> outFile)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Copy the specified URL resource to the specified output file. The total
number of bytes written is returned. Both streams are closed upon completion.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>conn</code> - the open URLConnection</dd><dd><code>outFile</code> - the destination</dd>
<dt><span class="strong">Returns:</span></dt><dd></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="copyStream2File(java.io.InputStream, java.io.File, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyStream2File</h4>
<pre>public static int copyStream2File(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> outFile,
int totalNumBytes)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Copy the specified input stream to the specified output file. The total
number of bytes written is returned. Both streams are closed upon completion.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - the source</dd><dd><code>outFile</code> - the destination</dd><dd><code>totalNumBytes</code> - informal number of expected bytes, maybe used for user feedback while processing. -1 if unknown</dd>
<dt><span class="strong">Returns:</span></dt><dd></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="copyStream2Stream(java.io.InputStream, java.io.OutputStream, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyStream2Stream</h4>
<pre>public static int copyStream2Stream(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out,
int totalNumBytes)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Copy the specified input stream to the specified output stream. The total
number of bytes written is returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - the source</dd><dd><code>out</code> - the destination</dd><dd><code>totalNumBytes</code> - informal number of expected bytes, maybe used for user feedback while processing. -1 if unknown</dd>
<dt><span class="strong">Returns:</span></dt><dd></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="copyStream2Stream(int, java.io.InputStream, java.io.OutputStream, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyStream2Stream</h4>
<pre>public static int copyStream2Stream(int bufferSize,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out,
int totalNumBytes)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Copy the specified input stream to the specified output stream. The total
number of bytes written is returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bufferSize</code> - the intermediate buffer size, should be <a href="../../../../com/jogamp/common/os/MachineDescription.html#pageSizeInBytes()"><code>MachineDescription.pageSizeInBytes()</code></a> for best performance.</dd><dd><code>in</code> - the source</dd><dd><code>out</code> - the destination</dd><dd><code>totalNumBytes</code> - informal number of expected bytes, maybe used for user feedback while processing. -1 if unknown</dd>
<dt><span class="strong">Returns:</span></dt><dd></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="copyStream2ByteArray(java.io.InputStream)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyStream2ByteArray</h4>
<pre>public static byte[] copyStream2ByteArray(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Copy the specified input stream to a byte array, which is being returned.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="copyStream2ByteBuffer(java.io.InputStream)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyStream2ByteBuffer</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> copyStream2ByteBuffer(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Copy the specified input stream to a NIO ByteBuffer w/ native byte order, which is being returned.
<p>The implementation creates the ByteBuffer w/ <a href="../../../../com/jogamp/common/util/IOUtil.html#copyStream2ByteArray(java.io.InputStream)"><code>copyStream2ByteArray(InputStream)</code></a>'s returned byte array.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>stream</code> - input stream, which will be wrapped into a BufferedInputStream, if not already done.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="copyStream2ByteBuffer(java.io.InputStream, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyStream2ByteBuffer</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> copyStream2ByteBuffer(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream,
int initialCapacity)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Copy the specified input stream to a NIO ByteBuffer w/ native byte order, which is being returned.
<p>The implementation creates the ByteBuffer w/ <a href="../../../../com/jogamp/common/util/IOUtil.html#copyStream2ByteArray(java.io.InputStream)"><code>copyStream2ByteArray(InputStream)</code></a>'s returned byte array.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>stream</code> - input stream, which will be wrapped into a BufferedInputStream, if not already done.</dd><dd><code>initialCapacity</code> - initial buffer capacity in bytes, if > available bytes</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="slashify(java.lang.String, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>slashify</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> slashify(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path,
boolean startWithSlash,
boolean endWithSlash)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - </dd><dd><code>startWithSlash</code> - </dd><dd><code>endWithSlash</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available while resolving <code>../</code></dd></dl>
</li>
</ul>
<a name="toURISimple(java.io.File)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toURISimple</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> toURISimple(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block">Using the simple conversion via File -> URI, assuming proper characters.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available while resolving <code>../</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if the resulting string does not comply w/ an RFC 2396 URI</dd></dl>
</li>
</ul>
<a name="toURISimple(java.lang.String, java.lang.String, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toURISimple</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> toURISimple(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> protocol,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path,
boolean isDirectory)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block">Using the simple conversion via File -> URI, assuming proper characters.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available while resolving <code>../</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if the resulting string does not comply w/ an RFC 2396 URI</dd></dl>
</li>
</ul>
<a name="getFileSuffix(java.io.File)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFileSuffix</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getFileSuffix(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file)</pre>
<div class="block">Returns the lowercase suffix of the given file name (the text
after the last '.' in the file name). Returns null if the file
name has no suffix. Only operates on the given file name;
performs no I/O operations.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - name of the file</dd>
<dt><span class="strong">Returns:</span></dt><dd>lowercase suffix of the file name</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if file is null</dd></dl>
</li>
</ul>
<a name="getFileSuffix(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFileSuffix</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getFileSuffix(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filename)</pre>
<div class="block">Returns the lowercase suffix of the given file name (the text
after the last '.' in the file name). Returns null if the file
name has no suffix. Only operates on the given file name;
performs no I/O operations.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - name of the file</dd>
<dt><span class="strong">Returns:</span></dt><dd>lowercase suffix of the file name</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if filename is null</dd></dl>
</li>
</ul>
<a name="getFileOutputStream(java.io.File, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFileOutputStream</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/io/FileOutputStream.html?is-external=true" title="class or interface in java.io">FileOutputStream</a> getFileOutputStream(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file,
boolean allowOverwrite)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - </dd><dd><code>allowOverwrite</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>outputStream The resulting output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if the file already exists and <code>allowOverwrite</code> is false,
the class <a href="http://docs.oracle.com/javase/6/docs/api/java/io/FileOutputStream.html?is-external=true" title="class or interface in java.io"><code>FileOutputStream</code></a> is not accessible or
the user does not have sufficient rights to access the local filesystem.</dd></dl>
</li>
</ul>
<a name="getClassFileName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClassFileName</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getClassFileName(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazzBinName)</pre>
</li>
</ul>
<a name="getClassURL(java.lang.String, java.lang.ClassLoader)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClassURL</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> getClassURL(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazzBinName,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> cl)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>clazzBinName</code> - com.jogamp.common.util.cache.TempJarCache</dd><dd><code>cl</code> - ClassLoader to locate the JarFile</dd>
<dt><span class="strong">Returns:</span></dt><dd>jar:file:/usr/local/projects/JOGL/gluegen/build-x86_64/gluegen-rt.jar!/com/jogamp/common/util/cache/TempJarCache.class</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if the jar file could not been found by the ClassLoader</dd></dl>
</li>
</ul>
<a name="getBasename(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBasename</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getBasename(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fname)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block">Returns the basename of the given fname w/o directory part</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available while resolving <code>../</code></dd></dl>
</li>
</ul>
<a name="getDirname(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDirname</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getDirname(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fname)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block">Returns unified '/' dirname including the last '/'</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available while resolving <code>../</code></dd></dl>
</li>
</ul>
<a name="getURIDirname(java.net.URI)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getURIDirname</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> getURIDirname(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> uri)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block">The URI's <code><i>protocol</i>:/some/path/gluegen-rt.jar</code>
parent dirname URI <code><i>protocol</i>:/some/path/</code> will be returned.
<p>
<i>protocol</i> may be "file", "http", etc..
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>uri</code> - "<i>protocol</i>:/some/path/gluegen-rt.jar"</dd>
<dt><span class="strong">Returns:</span></dt><dd>"<i>protocol</i>:/some/path/"</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the URI doesn't match the expected formatting, or is null</dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code></dd></dl>
</li>
</ul>
<a name="getURIDirname(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getURIDirname</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getURIDirname(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> uriS)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block">The URI's <code><i>protocol</i>:/some/path/gluegen-rt.jar</code>
parent dirname URI <code><i>protocol</i>:/some/path/</code> will be returned.
<p>
<i>protocol</i> may be "file", "http", etc..
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>uri</code> - "<i>protocol</i>:/some/path/gluegen-rt.jar" (URI encoded)</dd>
<dt><span class="strong">Returns:</span></dt><dd>"<i>protocol</i>:/some/path/"</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the URI doesn't match the expected formatting, or is null</dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code></dd></dl>
</li>
</ul>
<a name="toURL(java.net.URI)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toURL</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> toURL(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> uri)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Useless</i></div>
<div class="block">Simply returns <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true#toURL()" title="class or interface in java.net"><code>URI.toURL()</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>uri</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code></dd></dl>
</li>
</ul>
<a name="getResource(java.lang.Class, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResource</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a> getResource(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> context,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> resourcePath)</pre>
<div class="block">Locating a resource using <a href="../../../../com/jogamp/common/util/IOUtil.html#getResource(java.lang.String,%20java.lang.ClassLoader)"><code>getResource(String, ClassLoader)</code></a>:
<ul>
<li><i>relative</i>: <code>context</code>'s package name-path plus <code>resourcePath</code> via <code>context</code>'s ClassLoader.
This allows locations relative to JAR- and other URLs.
The <code>resourcePath</code> may start with <code>../</code> to navigate to parent folder.</li>
<li><i>absolute</i>: <code>context</code>'s ClassLoader and the <code>resourcePath</code> as is (filesystem)</li>
</ul>
<p>
Returns the resolved and open URLConnection or null if not found.
</p></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/jogamp/common/util/IOUtil.html#getResource(java.lang.String,%20java.lang.ClassLoader)"><code>getResource(String, ClassLoader)</code></a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true#getResource(java.lang.String)" title="class or interface in java.lang"><code>ClassLoader.getResource(String)</code></a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true#getSystemResource(java.lang.String)" title="class or interface in java.lang"><code>ClassLoader.getSystemResource(String)</code></a></dd></dl>
</li>
</ul>
<a name="getResource(java.lang.String, java.lang.ClassLoader)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResource</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a> getResource(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> resourcePath,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> cl)</pre>
<div class="block">Locating a resource using the ClassLoader's facilities.
<p>
Returns the resolved and connected URLConnection or null if not found.
</p></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true#getResource(java.lang.String)" title="class or interface in java.lang"><code>ClassLoader.getResource(String)</code></a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true#getSystemResource(java.lang.String)" title="class or interface in java.lang"><code>ClassLoader.getSystemResource(String)</code></a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true#URL(java.lang.String)" title="class or interface in java.net"><code>URL.URL(String)</code></a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true#File(java.lang.String)" title="class or interface in java.io"><code>File.File(String)</code></a></dd></dl>
</li>
</ul>
<a name="getRelativeOf(java.io.File, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRelativeOf</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getRelativeOf(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> baseLocation,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relativeFile)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block">Generates a path for the 'relativeFile' relative to the 'baseLocation'.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>baseLocation</code> - denotes a directory</dd><dd><code>relativeFile</code> - denotes a relative file to the baseLocation</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available while resolving <code>../</code></dd></dl>
</li>
</ul>
<a name="getParentOf(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParentOf</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getParentOf(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - assuming a slashified path beginning with "/" as it's root directory, either denotes a file or directory.</dd>
<dt><span class="strong">Returns:</span></dt><dd>parent of path</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available</dd></dl>
</li>
</ul>
<a name="cleanPathString(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cleanPathString</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cleanPathString(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - assuming a slashified path beginning with "/" as it's root directory, either denotes a file or directory.</dd>
<dt><span class="strong">Returns:</span></dt><dd>clean path string where <code>../</code> and <code>./</code> is resolved.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available while resolving <code>../</code></dd></dl>
</li>
</ul>
<a name="getRelativeOf(java.net.URI, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRelativeOf</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> getRelativeOf(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> baseURI,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relativePath)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block">Generates a URI for the <i>relativePath</i> relative to the <i>baseURI</i>,
hence the result is a absolute location.
<p>
Impl. operates on the <i>scheme-specific-part</i>, and hence is sub-protocol savvy.
</p>
<p>
In case <i>baseURI</i> is not a path ending w/ '/', it's a assumed to be a file and it's parent is being used.
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>baseURI</code> - denotes a URI to a directory ending w/ '/', or a file. In the latter case the file's directory is being used.</dd><dd><code>relativePath</code> - denotes a relative file to the baseLocation's parent directory (URI encoded)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available while resolving <code>../</code></dd></dl>
</li>
</ul>
<a name="getRelativeOf(java.net.URL, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRelativeOf</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> getRelativeOf(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> baseURL,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relativePath)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Wraps <a href="../../../../com/jogamp/common/util/IOUtil.html#getRelativeOf(java.net.URI,%20java.lang.String)"><code>getRelativeOf(URI, String)</code></a> for convenience.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>relativePath</code> - denotes a relative file to the baseLocation's parent directory (URI encoded)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="compose(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compose</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> compose(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> scheme,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> schemeSpecificPart,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relativePath,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fragment)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></pre>
<div class="block">Generates a URI for the <i>relativePath</i> relative to the <i>schemeSpecificPart</i>,
hence the result is a absolute location.
<p>
<i>schemeSpecificPart</i>'s query, if exist is split to <i>path</i> and <i>query</i>.
</p>
<p>
In case <i>path</i> is not a path ending w/ '/', it's a assumed to be a file and it's parent is being used.
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>scheme</code> - scheme of the resulting URI</dd><dd><code>schemeSpecificPart</code> - may include a query, which is separated while processing (URI encoded)</dd><dd><code>relativePath</code> - denotes a relative file to the baseLocation's parent directory (URI encoded)</dd><dd><code>fragment</code> - the URI fragment (URI encoded)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URISyntaxException.html?is-external=true" title="class or interface in java.net">URISyntaxException</a></code> - if path is empty or has no parent directory available while resolving <code>../</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/jogamp/common/util/IOUtil.html#encodeToURI(java.lang.String)"><code>encodeToURI(String)</code></a></dd></dl>
</li>
</ul>
<a name="encodeToURI(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>encodeToURI</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encodeToURI(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> vanilla)</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Useless</i></div>
<div class="block">Escapes characters not complying w/ RFC 2396 and the <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true#URI(java.lang.String)" title="class or interface in java.net"><code>URI.URI(String)</code></a> ctor.
<ul>
<li>SPACE -> %20</li>
</ul></div>
</li>
</ul>
<a name="decodeFromURI(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>decodeFromURI</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> decodeFromURI(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encodedUri)</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../../com/jogamp/common/util/IOUtil.html#decodeURIIfFilePath(java.net.URI)"><code>decodeURIIfFilePath(URI)</code></a></i></div>
<div class="block">Reverses escaping of characters as performed via <a href="../../../../com/jogamp/common/util/IOUtil.html#encodeToURI(java.lang.String)"><code>encodeToURI(String)</code></a>.
<ul>
<li>%20 -> SPACE</li>
</ul></div>
</li>
</ul>
<a name="encodeFilePathToURI(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>encodeFilePathToURI</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encodeFilePathToURI(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filePath)</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Useless</i></div>
<div class="block">Encodes file path characters not complying w/ RFC 2396 and the <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true#URI(java.lang.String)" title="class or interface in java.net"><code>URI.URI(String)</code></a> ctor.
<p>
Implementation processes the <code>filePath</code> if <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true#separatorChar" title="class or interface in java.io"><code>File.separatorChar</code></a> <code> == '\\'</code>
as follows:
<ul>
<li>backslash -> slash</li>
<li>ensure starting with slash</li>
</ul>
</p>
<p>
Note that this method does not perform <i>space</i> encoding,
which can be utilized via <a href="../../../../com/jogamp/common/util/IOUtil.html#encodeToURI(java.lang.String)"><code>encodeToURI(String)</code></a>.
</p>
<p>
Even though Oracle's JarURLStreamHandler can handle backslashes and
erroneous URIs w/ e.g. Windows file 'syntax', other may not (Netbeans).<br>
See Bug 857 - http://jogamp.org/bugzilla/show_bug.cgi?id=857
</p></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/jogamp/common/util/IOUtil.html#encodeToURI(java.lang.String)"><code>encodeToURI(String)</code></a></dd></dl>
</li>
</ul>
<a name="decodeURIToFilePath(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>decodeURIToFilePath</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> decodeURIToFilePath(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encodedUriPath)</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../../com/jogamp/common/util/IOUtil.html#decodeURIIfFilePath(java.net.URI)"><code>decodeURIIfFilePath(URI)</code></a></i></div>
<div class="block">Completes decoding uri-file path characters complying w/ RFC 2396 to native file-path.
<p>
Implementation decodes the space-encoding <code>path=<a href="../../../../com/jogamp/common/util/IOUtil.html#decodeFromURI(java.lang.String)"><code>decodeFromURI</code></a>(uriPath)</code>.
</p>
<p>
Then it processes the <code>path</code> if <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true#separatorChar" title="class or interface in java.io"><code>File.separatorChar</code></a> <code> == '\\'</code>
as follows:
<ul>
<li>slash -> backslash</li>
<li>drop a starting single backslash, preserving windows UNC</li>
</ul>
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>encodedUriPath</code> - URI encoded path</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/jogamp/common/util/IOUtil.html#decodeFromURI(java.lang.String)"><code>decodeFromURI(String)</code></a></dd></dl>
</li>
</ul>
<a name="decodeURIIfFilePath(java.net.URI)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>decodeURIIfFilePath</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> decodeURIIfFilePath(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a> uri)</pre>
<div class="block">If <code>uri</code> is a <i>file scheme</i>,
implementation completes space-decoding <i>[ "//"+<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true#getAuthority()" title="class or interface in java.net"><code>URI.getAuthority()</code></a> ] + <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true#getPath()" title="class or interface in java.net"><code>URI.getPath()</code></a></i>.<br>
Then it processes the <code>path</code> if <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true#separatorChar" title="class or interface in java.io"><code>File.separatorChar</code></a> <code> == '\\'</code>
as follows:
<ul>
<li>slash -> backslash</li>
<li>drop a starting single backslash, preserving windows UNC</li>
</ul>
</p>
<p>
Otherwise it returns the <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URI.html?is-external=true#toASCIIString()" title="class or interface in java.net"><code>URI.toASCIIString()</code></a> encoded URI.
</p></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/jogamp/common/util/IOUtil.html#decodeFromURI(java.lang.String)"><code>decodeFromURI(String)</code></a>,
<a href="../../../../com/jogamp/common/util/IOUtil.html#decodeURIToFilePath(java.lang.String)"><code>decodeURIToFilePath(String)</code></a></dd></dl>
</li>
</ul>
<a name="openURL(java.net.URL)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>openURL</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a> openURL(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url)</pre>
<div class="block">Returns the connected URLConnection, or null if not url is not available</div>
</li>
</ul>
<a name="openURL(java.net.URL, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>openURL</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a> openURL(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> dbgmsg)</pre>
<div class="block">Returns the connected URLConnection, or null if not url is not available</div>
</li>
</ul>
<a name="testFile(java.io.File, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>testFile</h4>
<pre>public static boolean testFile(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file,
boolean shallBeDir,
boolean shallBeWritable)</pre>
<div class="block">Test whether <code>file</code> exists and matches the given requirements</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - </dd><dd><code>shallBeDir</code> - </dd><dd><code>shallBeWritable</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd></dd></dl>
</li>
</ul>
<a name="testDirExec(java.io.File)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>testDirExec</h4>
<pre>public static boolean testDirExec(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> dir)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/SecurityException.html?is-external=true" title="class or interface in java.lang">SecurityException</a></pre>
<div class="block">Returns true if the given <code>dir</code>
<ol>
<li>exists, and</li>
<li>is a directory, and</li>
<li>is writeable, and</li>
<li>files can be executed from the directory</li>
</ol></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dir</code> - </dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/SecurityException.html?is-external=true" title="class or interface in java.lang">SecurityException</a></code> - if file creation and process execution is not allowed within the current security context</dd></dl>
</li>
</ul>
<a name="testDir(java.io.File, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>testDir</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> testDir(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> dir,
boolean create,
boolean executable)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/SecurityException.html?is-external=true" title="class or interface in java.lang">SecurityException</a></pre>
<div class="block">Returns the directory <code>dir</code>, which is processed and tested as described below.
<ol>
<li>If <code>create</code> is <code>true</code> and the directory does not exist yet, it is created incl. all sub-directories.</li>
<li>If <code>dirName</code> exists, but is not a directory, <code>null</code> is being returned.</li>
<li>If the directory does not exist or is not writeable, <code>null</code> is being returned.</li>
<li>If <code>executable</code> is <code>true</code> and files cannot be executed from the directory, <code>null</code> is being returned.</li>
</ol></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dir</code> - the directory to process</dd><dd><code>create</code> - true if the directory shall be created if not existing</dd><dd><code>executable</code> - true if the user intents to launch executables from the temporary directory, otherwise false.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/SecurityException.html?is-external=true" title="class or interface in java.lang">SecurityException</a></code> - if file creation and process execution is not allowed within the current security context</dd></dl>
</li>
</ul>
<a name="getTempDir(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTempDir</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> getTempDir(boolean executable)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/SecurityException.html?is-external=true" title="class or interface in java.lang">SecurityException</a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang">RuntimeException</a></pre>
<div class="block">Returns a platform independent writable directory for temporary files
consisting of the platform's <code>temp-root</code> + <a href="../../../../com/jogamp/common/util/IOUtil.html#tmpSubDir"><code>tmpSubDir</code></a>,
e.g. <code>/tmp/jogamp_0000/</code>.
<p>
On standard Java the <code>temp-root</code> folder is specified by <code>java.io.tempdir</code>.
</p>
<p>
On Android the <code>temp-root</code> folder is relative to the applications local folder
(see <code>Context#getDir(String, int)</code>) is returned, if
the Android application/activity has registered it's Application Context
via <code>StaticContext.init(..)</code>.
This allows using the temp folder w/o the need for <code>sdcard</code>
access, which would be the <code>java.io.tempdir</code> location on Android!
</p>
<p>
In case <code>temp-root</code> is the users home folder,
a dot is being prepended to <a href="../../../../com/jogamp/common/util/IOUtil.html#tmpSubDir"><code>tmpSubDir</code></a>, i.e.: <code>/home/user/.jogamp_0000/</code>.
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>executable</code> - true if the user intents to launch executables from the temporary directory, otherwise false.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang">RuntimeException</a></code> - if no temporary directory could be determined</dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/SecurityException.html?is-external=true" title="class or interface in java.lang">SecurityException</a></code> - if access to <code>java.io.tmpdir</code> is not allowed within the current security context</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/jogamp/common/util/PropertyAccess.html#getProperty(java.lang.String,%20boolean)"><code>PropertyAccess.getProperty(String, boolean)</code></a>,
<code>Context#getDir(String, int)</code></dd></dl>
</li>
</ul>
<a name="createTempFile(java.lang.String, java.lang.String, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTempFile</h4>
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> createTempFile(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> prefix,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> suffix,
boolean executable)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/SecurityException.html?is-external=true" title="class or interface in java.lang">SecurityException</a></pre>
<div class="block">Utilizing <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File)" title="class or interface in java.io"><code>File.createTempFile(String, String, File)</code></a> using
<a href="../../../../com/jogamp/common/util/IOUtil.html#getTempDir(boolean)"><code>getTempDir(boolean)</code></a> as the directory parameter, ie. location
of the root temp folder.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefix</code> - </dd><dd><code>suffix</code> - </dd><dd><code>executable</code> - true if the temporary root folder needs to hold executable files, otherwise false.</dd>
<dt><span class="strong">Returns:</span></dt><dd></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/SecurityException.html?is-external=true" title="class or interface in java.lang">SecurityException</a></code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true#createTempFile(java.lang.String,%20java.lang.String)" title="class or interface in java.io"><code>File.createTempFile(String, String)</code></a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File)" title="class or interface in java.io"><code>File.createTempFile(String, String, File)</code></a>,
<a href="../../../../com/jogamp/common/util/IOUtil.html#getTempDir(boolean)"><code>getTempDir(boolean)</code></a></dd></dl>
</li>
</ul>
<a name="close(java.io.Closeable, boolean)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>close</h4>
<pre>public static void close(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a> stream,
boolean throwRuntimeException)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang">RuntimeException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang">RuntimeException</a></code></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/jogamp/common/util/IntObjectHashMap.Entry.html" title="class in com.jogamp.common.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/jogamp/common/util/IOUtil.ClassResources.html" title="class in com.jogamp.common.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/jogamp/common/util/IOUtil.html" target="_top">Frames</a></li>
<li><a href="IOUtil.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_class_summary">Nested</a> | </li>
<li><a href="#field_summary">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|