skype.EmptySkypeMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skype2gmail Show documentation
Show all versions of skype2gmail Show documentation
Send skype chat history to a gmail account
The newest version!
package skype;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class EmptySkypeMessage implements InvocationHandler {
public static SkypeChatMessage produce() {
return (SkypeChatMessage) Proxy.newProxyInstance(
SkypeChatMessage.class.getClassLoader(),
new Class[]{ SkypeChatMessage.class},
new EmptySkypeMessage());
}
@Override
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
throw new SkypeMessageParsingException("Empty message produced? Impossible");
}
}