Ejemplo n.º 1
0
 private void writeTo(final IOConsoleOutputStream outputStream, final String message) {
   try {
     outputStream.write(message);
     outputStream.flush();
   } catch (final IOException e) {
     // Do nothing
   }
 }
Ejemplo n.º 2
0
 public void print(String message, MessageType type) {
   IOConsoleOutputStream newMessageStream = getNewMessageConsoleStream(type);
   try {
     newMessageStream.write(message);
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
  public String write(IProgressMonitor monitor) throws CoreException {

    final String content = getContent(monitor);

    if (content != null && content.length() > 0) {

      try {
        outputStream.write(content);
      } catch (IOException e) {
        throw CloudErrorUtil.toCoreException(e);
      }
    }

    return null;
  }