public class StringContentFile extends Object
| Constructor and Description |
|---|
StringContentFile(File outputDir)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream.
|
void |
write(long objectId,
String content)
Record a String.
|
public StringContentFile(File outputDir) throws IOException
outputDir - specifies a directory for storing output files.IOException - failed to save string contents to the file at outputDirpublic void write(long objectId,
String content)
objectId - specifies the object ID of the content object.content - specifies the string to be recorded.
TODO Improve the file formatpublic void close()
Copyright © 2023. All rights reserved.