Class DataHandler
- Namespace
- Javax.Activation
- Assembly
- MASES.JNet.dll
public class DataHandler : Transferable, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ITransferable
- Inheritance
-
DataHandler
- Implements
- Inherited Members
- Extension Methods
Constructors
DataHandler()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public DataHandler()
DataHandler(URL)
public DataHandler(URL arg0)
Parameters
DataHandler(DataSource)
public DataHandler(DataSource arg0)
Parameters
arg0DataSource
DataHandler(IJVMBridgeBaseInitializer)
Internal constructor: used internally from JCOBridge
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public DataHandler(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
DataHandler(object, String)
public DataHandler(object arg0, String arg1)
Parameters
DataHandler(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public DataHandler(params object[] args)
Parameters
argsobject[]
Properties
AllCommands
public CommandInfo[] AllCommands { get; }
Property Value
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
Content
public object Content { get; }
Property Value
ContentType
public String ContentType { get; }
Property Value
DataSource
public DataSource DataSource { get; }
Property Value
InputStream
public InputStream InputStream { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Name
public String Name { get; }
Property Value
OutputStream
public OutputStream OutputStream { get; }
Property Value
PreferredCommands
public CommandInfo[] PreferredCommands { get; }
Property Value
TransferDataFlavors
https://docs.oracle.com/javase/8/docs/api/javax/activation/DataHandler.html#getTransferDataFlavors--
public DataFlavor[] TransferDataFlavors { get; }
Property Value
Methods
GetBean(CommandInfo)
public object GetBean(CommandInfo arg0)
Parameters
arg0CommandInfo
Returns
GetCommand(String)
public CommandInfo GetCommand(String arg0)
Parameters
Returns
GetTransferData(DataFlavor)
public object GetTransferData(DataFlavor arg0)
Parameters
arg0DataFlavor
Returns
Exceptions
IsDataFlavorSupported(DataFlavor)
public bool IsDataFlavorSupported(DataFlavor arg0)
Parameters
arg0DataFlavor
Returns
SetCommandMap(CommandMap)
public void SetCommandMap(CommandMap arg0)
Parameters
arg0CommandMap
SetDataContentHandlerFactory(DataContentHandlerFactory)
public static void SetDataContentHandlerFactory(DataContentHandlerFactory arg0)
Parameters
WriteTo(OutputStream)
public void WriteTo(OutputStream arg0)
Parameters
arg0OutputStream