本文整理了Java中javax.activation.DataHandler.getOutputStream()
方法的一些代码示例,展示了DataHandler.getOutputStream()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataHandler.getOutputStream()
方法的具体详情如下:
包路径:javax.activation.DataHandler
类名称:DataHandler
方法名:getOutputStream
[英]Get an OutputStream for this DataHandler to allow overwriting the underlying data. If the DataHandler was created with a DataSource, the DataSource's getOutputStream
method is called. Otherwise, null
is returned.
[中]获取此DataHandler的OutputStream以允许覆盖基础数据。如果DataHandler是使用数据源创建的,则会调用数据源的getOutputStream
方法。否则,将返回null
。
代码示例来源:origin: javax.activation/activation
/**
* Returns the <code>OutputStream</code> for this object.
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: javax.activation/activation
private void performSaveOperation(){
OutputStream fos = null;
try {
fos = _dh.getOutputStream();
} catch (Exception e) {}
String buffer = text_area.getText();
// make sure we got one
if(fos == null) {
System.out.println("Invalid outputstream in TextEditor!");
System.out.println("not saving!");
return;
}
try {
fos.write( buffer.getBytes() );
fos.flush(); // flush it!
fos.close(); // close it!
} catch(IOException e)
{
System.out.println("TextEditor Save Operation failed with: " + e);
}
}
//--------------------------------------------------------------------
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Returns the <code>OutputStream</code> for this object.
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: camunda/camunda-bpm-platform
private void performSaveOperation(){
OutputStream fos = null;
try {
fos = _dh.getOutputStream();
} catch (Exception e) {}
String buffer = text_area.getText();
// make sure we got one
if(fos == null) {
System.out.println("Invalid outputstream in TextEditor!");
System.out.println("not saving!");
}
try {
fos.write( buffer.getBytes() );
fos.flush(); // flush it!
fos.close(); // close it!
} catch(IOException e)
{
System.out.println("TextEditor Save Operation failed with: " + e);
}
}
//--------------------------------------------------------------------
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
/**
* Returns the <code>OutputStream</code> for this object.
*
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: javax.activation/javax.activation-api
/**
* Returns the <code>OutputStream</code> for this object.
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: com.sun.activation/jakarta.activation
/**
* Returns the <code>OutputStream</code> for this object.
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: jakarta.activation/jakarta.activation-api
/**
* Returns the <code>OutputStream</code> for this object.
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: org.glassfish.metro/webservices-api
/**
* Returns the <code>OutputStream</code> for this object.
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Returns the <code>OutputStream</code> for this object.
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: com.sun.xml.ws/rt
/**
* Returns the <code>OutputStream</code> for this object.
*
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: org.jvnet.hudson/activation
/**
* Returns the <code>OutputStream</code> for this object.
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: javaee/metro-jax-ws
/**
* Returns the <code>OutputStream</code> for this object.
*
* @return the <code>OutputStream</code>
*/
public OutputStream getOutputStream() throws IOException {
return dataHandler.getOutputStream();
}
代码示例来源:origin: org.apache.ws.commons.axiom/axiom-api
public OutputStream getOutputStream() throws IOException {
return parent.getOutputStream();
}
代码示例来源:origin: com.sun.activation/jakarta.activation
private void performSaveOperation(){
OutputStream fos = null;
try {
fos = _dh.getOutputStream();
} catch (Exception e) {}
String buffer = text_area.getText();
// make sure we got one
if(fos == null) {
System.out.println("Invalid outputstream in TextEditor!");
System.out.println("not saving!");
return;
}
try {
fos.write( buffer.getBytes() );
fos.flush(); // flush it!
fos.close(); // close it!
} catch(IOException e)
{
System.out.println("TextEditor Save Operation failed with: " + e);
}
}
//--------------------------------------------------------------------
代码示例来源:origin: jboss/jboss-javaee-specs
private void performSaveOperation(){
OutputStream fos = null;
try {
fos = _dh.getOutputStream();
} catch (Exception e) {}
String buffer = text_area.getText();
// make sure we got one
if(fos == null) {
System.out.println("Invalid outputstream in TextEditor!");
System.out.println("not saving!");
return;
}
try {
fos.write( buffer.getBytes() );
fos.flush(); // flush it!
fos.close(); // close it!
} catch(IOException e)
{
System.out.println("TextEditor Save Operation failed with: " + e);
}
}
//--------------------------------------------------------------------
代码示例来源:origin: org.jvnet.hudson/activation
private void performSaveOperation(){
OutputStream fos = null;
try {
fos = _dh.getOutputStream();
} catch (Exception e) {}
String buffer = text_area.getText();
// make sure we got one
if(fos == null) {
System.out.println("Invalid outputstream in TextEditor!");
System.out.println("not saving!");
return;
}
try {
fos.write( buffer.getBytes() );
fos.flush(); // flush it!
fos.close(); // close it!
} catch(IOException e)
{
System.out.println("TextEditor Save Operation failed with: " + e);
}
}
//--------------------------------------------------------------------
内容来源于网络,如有侵权,请联系作者删除!