1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.handler.codec.smtp;
17
18 import io.netty.buffer.ByteBuf;
19 import io.netty.buffer.DefaultByteBufHolder;
20 import io.netty.util.internal.UnstableApi;
21
22
23
24
25 @UnstableApi
26 public class DefaultSmtpContent extends DefaultByteBufHolder implements SmtpContent {
27
28
29
30
31 public DefaultSmtpContent(ByteBuf data) {
32 super(data);
33 }
34
35 @Override
36 public SmtpContent copy() {
37 return (SmtpContent) super.copy();
38 }
39
40 @Override
41 public SmtpContent duplicate() {
42 return (SmtpContent) super.duplicate();
43 }
44
45 @Override
46 public SmtpContent retainedDuplicate() {
47 return (SmtpContent) super.retainedDuplicate();
48 }
49
50 @Override
51 public SmtpContent replace(ByteBuf content) {
52 return new DefaultSmtpContent(content);
53 }
54
55 @Override
56 public SmtpContent retain() {
57 super.retain();
58 return this;
59 }
60
61 @Override
62 public SmtpContent retain(int increment) {
63 super.retain(increment);
64 return this;
65 }
66
67 @Override
68 public SmtpContent touch() {
69 super.touch();
70 return this;
71 }
72
73 @Override
74 public SmtpContent touch(Object hint) {
75 super.touch(hint);
76 return this;
77 }
78 }