[prev in list] [next in list] [prev in thread] [next in thread]
List: forgerock-openidm-commit
Subject: [CommitOpenIDM] Bitbucket - Brendan Miller has pushed changes to OpenIDM/openidm (master)
From: ForgeRock Stash <stash () forgerock ! org>
Date: 2016-05-11 22:51:29
Message-ID: 929647696.32707.1463007089229.JavaMail.atlbitbucket () stash ! internal ! forgerock ! com
[Download RAW message or body]
[Attachment #2 (text/html)]
<!doctype html>
<html lang="en">
<head></head>
<body class="bitbucket-theme fullwidth">
<table width="100%" class="fullwidth">
<tbody>
<tr>
<td class="body-cell" colspan="3">
<table width="100%">
<tbody>
<tr>
<td bgcolor="#f5f5f5" class="header" style="background-color: #f5f5f5; border-bottom: \
1px solid #cccccc; padding-left: 20px; height: 50px; padding-top: 10px; \
padding-bottom: 10px; font-size: 18px; font-family: Arial" height="50"><a \
href="https://stash.forgerock.org/projects/OPENIDM" style="color: #3b73af; \
text-decoration: none; font-size: 17px; font-weight: bold; padding-bottom: \
10px">OpenIDM</a> / <a \
href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/browse" \
style="color: #3b73af; text-decoration: none; font-size: 17px; font-weight: bold; \
padding-bottom: 10px">openidm</a><br> <div style="margin: 0; padding: 0; margin-top: \
3px"> Brendan Miller has
<span class="il">pushed changes</span> to: 'master'
</div></td>
</tr>
<tr>
<td>
<table border="0" width="100%" style="width:100%;min-width:100%">
<tbody>
<tr>
<td style="padding-right:10px;font-size:13px;font-family:Arial" valign="top" \
nowrap><a href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/commits/c5b83b60d41f3c8e544b146b7ef0e2c2177c00b4" \
style="text-decoration: none; color: #3c78b5;font-family: monospace;; color: #3b73af; \
text-decoration: none">c5b83b60d41</a></td> <td width="100%" \
style="width:100%;min-width:100%;padding-right:10px;font-size:13px;font-family:Arial" \
valign="top">OPENIDM-5794 Remove unused methods</td> <td nowrap valign="top" \
style="font-size:13px;font-family:Arial;text-align:left;padding-right:1em;">brmiller</td>
<td nowrap valign="top" \
style="font-size:13px;font-family:Arial;text-align:right;"><time title="11 May 2016 \
09:41 PM" datetime="2016-05-11T21:41:57+0100" class="deprecated">11 May - 09:41 \
PM</time></td> </tr>
<tr>
<td></td>
<td colspan="3">
<table class="aui" style="border-collapse: collapse; margin: 20px 0; width: 100%; \
margin-top: 5px"> <tbody>
<tr style="background: #ffffff; color: #333333">
<td style="font-size:13px;font-family:Arial;padding-top:2px;padding-right:10px;margin:0;; \
padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid \
#cccccc; border-top: 1px solid #cccccc" valign="top"><a style="text-decoration: none; \
color: #3c78b5; color: #3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/browse?at=master">openidm-core/src/main/java/org/forgerock/openidm/sync/impl/Utils.java</a></td>
<td style="font-size:13px;font-family:Arial;padding-top:2px;text-align:right \
!important;margin:0;; padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc; border-top: 1px solid #cccccc" nowrap \
valign="top"><a style="text-decoration: none; color: #3c78b5; color: #3b73af; \
text-decoration: none" \
href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/commits/c5b83b60d41f3 \
c8e544b146b7ef0e2c2177c00b4#openidm-core/src/main/java/org/forgerock/openidm/sync/impl/Utils.java">View \
changes</a></td> </tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">75</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">75</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> private Utils() {</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">76</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">76</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">77</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">77</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">78</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public static void copyURLToFile(URL in, File out) throws IOException {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">79</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> ReadableByteChannel inChannel = Channels.newChannel(in.openStream());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">80</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> FileChannel outChannel = new FileOutputStream(out).getChannel();</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">81</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> try {</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">82</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> outChannel.transferFrom(inChannel, 0, 1 << 24);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">83</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> } catch (IOException e) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">84</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> throw e;</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">85</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> } finally {</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">86</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> if (inChannel != null)</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">87</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> inChannel.close();</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">88</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> if (outChannel != null)</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">89</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> outChannel.close();</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">90</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">91</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">92</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">93</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">78</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public static <T> T deepCopy(final T source) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">94</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">79</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> if (source instanceof JsonValue) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">95</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">80</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return  \
;(T) new JsonValue(deepCopy(((JsonValue) source).getObject()));</td> \
</tr> </tbody>
</table></td>
</tr>
<tr style="background: #ffffff; color: #333333">
<td style="font-size:13px;font-family:Arial;padding-top:2px;padding-right:10px;margin:0;; \
padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid \
#cccccc" valign="top"><a style="text-decoration: none; color: #3c78b5; color: \
#3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/browse?at=master">ope \
nidm-maintenance/src/mai...dm/maintenance/upgrade/UpdateManagerImpl.java</a></td> <td \
style="font-size:13px;font-family:Arial;padding-top:2px;text-align:right \
!important;margin:0;; padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc" nowrap valign="top"><a style="text-decoration: \
none; color: #3c78b5; color: #3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/commits/c5b83b60d41f3 \
c8e544b146b7ef0e2c2177c00b4#openidm-maintenance/src/main/java/org/forgerock/openidm/maintenance/upgrade/UpdateManagerImpl.java">View \
changes</a></td> </tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1216</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">1216</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1217</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">1217</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1218</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">1218</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> /**</td> </tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1219</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * Fetch the zip file from&nb \
sp;the URL and write it to the local filesystem.</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1220</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> *</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1221</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @param url</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1222</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @return</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1223</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @throws UpdateException</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1224</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> */</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1225</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> private Path readZipFile(URL url) throws UpdateException {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1226</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1227</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> // Download the patch file</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1228</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> final ReadableByteChannel channel;</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1229</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> try {</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1230</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> channel = Channels.newChannel(url.openStream());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1231</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> } catch (IOException ex) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1232</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> throw \
new UpdateException("Failed to access the specified file \
" + url + " " + ex.getMessage(), ex);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1233</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1234</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1235</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> String workingDir = "";</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1236</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> final String targetFileName = new File(url.getPath()).getName();</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1237</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> final File patchDir = ARCHIVE_PATH.toFile();</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1238</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> patchDir.mkdirs();</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1239</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> final File targetFile = new File(patchDir, targetFileName);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1240</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> final FileOutputStream fos;</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1241</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> try {</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1242</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> fos = new FileOutputStream(targetFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1243</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> } catch (FileNotFoundException ex) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1244</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> throw \
new UpdateException("Error in getting the specified file to " + targetFile, ex);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1245</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1246</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1247</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> try {</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1248</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> fos.getChannel().transferFrom(channel, 0, Long.MAX_VALUE);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1249</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> System.out.println("Downloaded to " + targetFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1250</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> } catch (IOException ex) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1251</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> throw \
new UpdateException("Failed to get the specified file&nb \
sp;" + url + " to: " + targetFile, ex);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1252</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1253</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1254</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return targetFile.toPath();</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1255</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1256</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1257</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> /**</td> </tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1258</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">1219</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * Return the name of the&nbs \
p;db directory in db/ representing the current repo.</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1259</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">1220</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> *</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">1260</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">1221</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * This is retrieved from the \
OSGi context stored as the db.dirname property on the RepositoryService</td>
</tr>
</tbody>
</table></td>
</tr>
<tr style="background: #ffffff; color: #333333">
<td style="font-size:13px;font-family:Arial;padding-top:2px;padding-right:10px;margin:0;; \
padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid \
#cccccc" valign="top"><a style="text-decoration: none; color: #3c78b5; color: \
#3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/browse?at=master">openidm-util/src/main/java/org/forgerock/openidm/util/FileUtil.java</a></td>
<td style="font-size:13px;font-family:Arial;padding-top:2px;text-align:right \
!important;margin:0;; padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc" nowrap valign="top"><a style="text-decoration: \
none; color: #3c78b5; color: #3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/commits/c5b83b60d41f3 \
c8e544b146b7ef0e2c2177c00b4#openidm-util/src/main/java/org/forgerock/openidm/util/FileUtil.java">View \
changes</a></td> </tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">35</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">35</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">36</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">36</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">37</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">37</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> /**</td> </tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">38</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * Read large > 5Mb text files to String.</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">39</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> *</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">40</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @param file</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">41</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * source file</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">42</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @return content of the source {@code file}</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">43</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @throws IOException</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">44</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * &nbs \
p; when the source {@code file} can not be read</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">45</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> */</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">46</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public final static String readLargeFile(File file) throws IOException {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">47</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> FileChannel channel = new FileInputStream(file).getChannel();</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">48</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> ByteBuffer buffer = ByteBuffer.allocate((int) channel.size());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">49</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> channel.read(buffer);</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">50</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> channel.close();</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">51</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return new String(buffer.array());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">52</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">53</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">54</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> /**</td> </tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">55</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">38</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * Read small < 5Mb text files to String.</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">56</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">39</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> *</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">57</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">40</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @param file</td> </tr>
</tbody>
</table></td>
</tr>
<tr style="background: #ffffff; color: #333333">
<td style="font-size:13px;font-family:Arial;padding-top:2px;padding-right:10px;margin:0;; \
padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid \
#cccccc" valign="top"><a style="text-decoration: none; color: #3c78b5; color: \
#3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/browse?at=master">openidm-util/src/test/java/org/forgerock/openidm/util/FileUtilTest.java</a></td>
<td style="font-size:13px;font-family:Arial;padding-top:2px;text-align:right \
!important;margin:0;; padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc" nowrap valign="top"><a style="text-decoration: \
none; color: #3c78b5; color: #3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/commits/c5b83b60d41f3 \
c8e544b146b7ef0e2c2177c00b4#openidm-util/src/test/java/org/forgerock/openidm/util/FileUtilTest.java">View \
changes</a></td> </tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">56</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">56</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">57</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">57</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">58</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">58</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">59</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> @Test(invocationCount = 4)</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">60</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public void testReadLargeFile() throws Exception {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">61</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> Random random = new Random(9999);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">62</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> int iterations = 20;</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">63</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> long before = System.nanoTime();</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">64</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> URL testFile = FileUtilTest.class.getResource("/text1k.txt");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">65</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> File textFile = new File(testFile.toURI());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">66</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">67</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> for (int i = 0; i < iterations; i++) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">68</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile = uncacheFile(random, textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">69</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> FileUtil.readLargeFile(textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">70</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">71</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> System.out.println("1k: "  \
;+ ((System.nanoTime() - before) / 1000L / 1000L) + "ms");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">72</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile.renameTo(new File(testFile.toURI()));</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">73</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">74</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> testFile = FileUtilTest.class.getResource("/text8k.txt");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">75</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile = new File(testFile.toURI());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">76</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> for (int i = 0; i < iterations; i++) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">77</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile = uncacheFile(random, textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">78</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> FileUtil.readLargeFile(textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">79</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">80</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> System.out.println("8k: "  \
;+ ((System.nanoTime() - before) / 1000L / 1000L) + "ms");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">81</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile.renameTo(new File(testFile.toURI()));</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">82</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">83</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> testFile = FileUtilTest.class.getResource("/text96k.txt");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">84</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile = new File(testFile.toURI());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">85</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> for (int i = 0; i < iterations; i++) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">86</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile = uncacheFile(random, textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">87</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> FileUtil.readLargeFile(textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">88</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">89</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> System.out.println("96k: "&nbs \
p;+ ((System.nanoTime() - before) / 1000L / 1000L) + "ms");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">90</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile.renameTo(new File(testFile.toURI()));</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">91</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">92</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> testFile = FileUtilTest.class.getResource("/text1m.txt");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">93</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile = new File(testFile.toURI());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">94</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> for (int i = 0; i < iterations; i++) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">95</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile = uncacheFile(random, textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">96</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> FileUtil.readLargeFile(textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">97</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">98</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> System.out.println("1m: "  \
;+ ((System.nanoTime() - before) / 1000L / 1000L) + "ms");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">99</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile.renameTo(new File(testFile.toURI()));</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">100</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">101</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> testFile = FileUtilTest.class.getResource("/text10m.txt");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">102</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile = new File(testFile.toURI());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">103</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> for (int i = 0; i < iterations; i++) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">104</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile = uncacheFile(random, textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">105</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> FileUtil.readLargeFile(textFile);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">106</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">107</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> System.out.println("10m: "&nbs \
p;+ ((System.nanoTime() - before) / 1000L / 1000L) + "ms");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">108</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> textFile.renameTo(new File(testFile.toURI()));</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">109</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">110</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> System.out.println("End testReadLargeFile");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">111</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">112</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">113</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">59</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> private File uncacheFile(Random random, File textFile) {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">114</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">60</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> //The OS will cache any file that was recently read.</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">115</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">61</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> File newFile = new&n \
bsp;File(textFile.getParentFile(), random.nextInt() + ".txt");</td> \
</tr> </tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<table width="100%" class="fullwidth">
<tbody>
<tr>
<td class="chrome-cell footer" bgcolor="#f5f5f5" style="border-top: 1px solid \
#cccccc; padding-left: 20px; height: 20px; padding-top: 10px; padding-bottom: 10px; \
font-size: 12px; color: #707070; background-color: #f5f5f5; background-position: \
right 10px center; background-repeat: no-repeat; background-image: \
url(https://stash.forgerock.org/s/en_US/3619e0d/253/3.2.0/_/download/resources/nl.stefankohler.stash.stash-notification-plugin:email-resources/logo-email-footer.png)" \
height="20"><strong>Hint:</strong> You received this notification because you're \
watching <a href="https://stash.forgerock.org/projects/OPENIDM/repos/openidm/browse" \
style="color: #3b73af; text-decoration: none">openidm</a></td> </tr>
</tbody>
</table>
<table width="100%" style="width:100%;min-width:100%" cellpadding="0" \
cellspacing="0"> <tbody>
<tr>
<td style="font-size: 11px;font-family:Arial;color: #666; text-align: center; \
padding-top: 5px">Sent by <a \
href="https://marketplace.atlassian.com/plugins/nl.stefankohler.stash.stash-notification-plugin" \
style="text-decoration: none; color: #666; color: #3b73af; text-decoration: \
none">Notifyr for Bitbucket Server</a>, the <a \
href="http://www.atlassian.com/software/bitbucket/" style="text-decoration: none; \
color: #666; color: #3b73af; text-decoration: none">Git repository management for \
enterprise teams</a></td> </tr>
</tbody>
</table>
</body>
</html>
_______________________________________________
CommitOpenIDM mailing list
CommitOpenIDM@forgerock.org
https://lists.forgerock.org/mailman/listinfo/commitopenidm
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic