<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true"title="class or interface in java.lang"class="externalLink">java.lang.Object</a>
<divclass="inheritance"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink">java.io.OutputStream</a>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/Closeable.html?is-external=true"title="class or interface in java.io"class="externalLink">Closeable</a></code>, <code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/Flushable.html?is-external=true"title="class or interface in java.io"class="externalLink">Flushable</a></code>, <code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/AutoCloseable.html?is-external=true"title="class or interface in java.lang"class="externalLink">AutoCloseable</a></code></dd>
extends <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink">OutputStream</a></pre>
<divclass="block">A custom <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink"><code>OutputStream</code></a> that writes the bytes received in input in multiple files with a progressively increasing number (.c1, .c2, .c3, and so on).
Bytes are written to a file until its length reaches <ahref="#maximumByteCount"><code>maximumByteCount</code></a>, then the program switches to the following file (.c2 if .c1 is full, .c3 if .c2 is full, and so on).</div>
<tdclass="colFirst"><code>protected <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/FileOutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink">FileOutputStream</a></code></td>
<divclass="block">The <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/FileOutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink"><code>FileOutputStream</code></a> this <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink"><code>OutputStream</code></a> is currently writing to.</div>
<tdclass="colFirst"><code>private <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a></code></td>
<thclass="colConstructorName"scope="row"><code><spanclass="memberNameLink"><ahref="#%3Cinit%3E(java.lang.String,long)">SplitFileOutputStream</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a> fileBaseName,
<divclass="block">Create the following file in the sequence, and update the <ahref="#currentFileOutputStream"><code>currentFileOutputStream</code></a>.</div>
<tdclass="colFirst"><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a></code></td>
<h3>Methods inherited from class java.io.<ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink">OutputStream</a></h3>
</a><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true#flush()"title="class or interface in java.io"class="externalLink">flush</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true#nullOutputStream()"title="class or interface in java.io"class="externalLink">nullOutputStream</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true#write(byte%5B%5D)"title="class or interface in java.io"class="externalLink">write</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true#write(byte%5B%5D,int,int)"title="class or interface in java.io"class="externalLink">write</a></code></div>
<h3>Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true"title="class or interface in java.lang"class="externalLink">Object</a></h3>
</a><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang"class="externalLink">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang"class="externalLink">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang"class="externalLink">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang"class="externalLink">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang"class="externalLink">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang"class="externalLink">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang"class="externalLink">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang"class="externalLink">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang"class="externalLink">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#wait(long,int)"title="class or interface in java.lang"class="externalLink">wait</a></code></div>
<divclass="memberSignature"><spanclass="modifiers">private final</span> <spanclass="returnType"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a></span> <spanclass="memberName">fileBaseName</span></div>
<divclass="memberSignature"><spanclass="modifiers">protected</span> <spanclass="returnType"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/FileOutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink">FileOutputStream</a></span> <spanclass="memberName">currentFileOutputStream</span></div>
<divclass="block">The <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/FileOutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink"><code>FileOutputStream</code></a> this <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink"><code>OutputStream</code></a> is currently writing to.</div>
<divclass="memberSignature"><spanclass="modifiers">public</span> <spanclass="memberName">SplitFileOutputStream</span>​(<spanclass="arguments"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a> fileBaseName,
<dd><code>fileBaseName</code> - The name that the files without the extension. If it is example, the created files will be example.c1, example.c2, and so on.</dd>
<dd><code>maximumByteCount</code> - The number of bytes that should be written to a file before switching to the next one.</dd>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/IOException.html?is-external=true"title="class or interface in java.io"class="externalLink">IOException</a></span></div>
<divclass="block">Create the following file in the sequence, and update the <ahref="#currentFileOutputStream"><code>currentFileOutputStream</code></a>.</div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/IOException.html?is-external=true"title="class or interface in java.io"class="externalLink">IOException</a></code> - If for some reason the program cannot create the file.</dd>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/IOException.html?is-external=true"title="class or interface in java.io"class="externalLink">IOException</a></span></div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true#write(int)"title="class or interface in java.io"class="externalLink">write</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink">OutputStream</a></code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/IOException.html?is-external=true"title="class or interface in java.io"class="externalLink">IOException</a></code></dd>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/IOException.html?is-external=true"title="class or interface in java.io"class="externalLink">IOException</a></span></div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/AutoCloseable.html?is-external=true#close()"title="class or interface in java.lang"class="externalLink">close</a></code> in interface <code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/AutoCloseable.html?is-external=true"title="class or interface in java.lang"class="externalLink">AutoCloseable</a></code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/Closeable.html?is-external=true#close()"title="class or interface in java.io"class="externalLink">close</a></code> in interface <code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/Closeable.html?is-external=true"title="class or interface in java.io"class="externalLink">Closeable</a></code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true#close()"title="class or interface in java.io"class="externalLink">close</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/OutputStream.html?is-external=true"title="class or interface in java.io"class="externalLink">OutputStream</a></code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/IOException.html?is-external=true"title="class or interface in java.io"class="externalLink">IOException</a></code></dd>
<divclass="memberSignature"><spanclass="modifiers">public</span> <spanclass="returnType"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a></span> <spanclass="memberName">getFileBaseName</span>()</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The name that the files without the extension. If it is example, the created files will be example.c1, example.c2, and so on.</dd>