public class FileProjectWriter extends Object implements ProjectWriter
| Constructor and Description |
|---|
FileProjectWriter(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
exists(String path) |
byte[] |
getContent(String path) |
boolean |
init() |
String |
mkdirs(String path) |
void |
write(String path,
String content) |
public FileProjectWriter(File file)
public boolean init()
init in interface ProjectWriterpublic String mkdirs(String path)
mkdirs in interface ProjectWriterpublic void write(String path, String content) throws IOException
write in interface ProjectWriterIOExceptionpublic byte[] getContent(String path) throws IOException
getContent in interface ProjectWriterIOExceptionpublic boolean exists(String path)
exists in interface ProjectWriterpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.