Closeable
, AutoCloseable
public static class Sort.ByteSequencesWriter extends Object implements Closeable
Sort.ByteSequencesReader
.Constructor | Description |
---|---|
ByteSequencesWriter(DataOutput os) |
|
ByteSequencesWriter(File file) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Closes the provided
DataOutput if it is Closeable . |
void |
write(byte[] bytes) |
|
void |
write(byte[] bytes,
int off,
int len) |
|
void |
write(org.apache.lucene.util.BytesRef ref) |
public ByteSequencesWriter(File file) throws IOException
IOException
public ByteSequencesWriter(DataOutput os)
public void write(org.apache.lucene.util.BytesRef ref) throws IOException
IOException
public void write(byte[] bytes) throws IOException
IOException
public void write(byte[] bytes, int off, int len) throws IOException
IOException
public void close() throws IOException
DataOutput
if it is Closeable
.close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.