Java Reference
In-Depth Information
private FileWriter fw;
File(String dstName)
{
this.dstName = dstName;
}
@Override
public boolean connect()
{
if (dstName == null)
return false;
try
{
fw = new FileWriter(dstName);
}
catch (IOException ioe)
{
return false;
}
return true;
}
@Override
public boolean disconnect()
{
if (fw == null)
return false;
try
{
fw.close();
}
catch (IOException ioe)
{
return false;
}
return true;
}
@Override
Search WWH ::




Custom Search